History

vfs: support FS_XFLAG_COWEXTSIZE and get/set of CoW extent size hint

Introduce XFLAGs for the new XFS CoW extent size hint, and actually plumb the CoW extent size hint into the fsxattr structure.

Darrick J. Wong committed 10 years ago

Commit 0a6eab81 parent 155cd431 file · +3 −1Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/fs.h+3−1
@@ -157,7 +157,8 @@ struct fsxattr { · 156 unmodified lines
157157 __u32 fsx_extsize; /* extsize field value (get/set)*/
158158 __u32 fsx_nextents; /* nextents field value (get) */
159159 __u32 fsx_projid; /* project identifier (get/set) */
160− unsigned char fsx_pad[12];
160+ __u32 fsx_cowextsize; /* CoW extsize field value (get/set)*/
161+ unsigned char fsx_pad[8];
161162 };
162163
163164 /*
@@ -178,6 +179,7 @@ struct fsxattr { · 14 unmodified lines
178179 #define FS_XFLAG_NODEFRAG 0x00002000 /* do not defragment */
179180 #define FS_XFLAG_FILESTREAM 0x00004000 /* use filestream allocator */
180181 #define FS_XFLAG_DAX 0x00008000 /* use DAX for IO */
182+#define FS_XFLAG_COWEXTSIZE 0x00010000 /* CoW extent size allocator hint */
181183 #define FS_XFLAG_HASATTR 0x80000000 /* no DIFLAG for this */
182184
183185 /* the read-only stuff doesn't really belong here, but any other place is

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t