diff options
author | Brian Foster <bfoster@redhat.com> | 2012-11-07 12:21:14 -0500 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-11-08 16:32:29 -0500 |
commit | 00ca79a04bef1a1b30ef8afd992d905b6d986caf (patch) | |
tree | ee4a3f4dbb6fbfeae01e58f98a1c2c8457f5b4b0 /fs/xfs/xfs_fs.h | |
parent | 1b5560488d1ab7c932f6f99385b41116838c3486 (diff) |
xfs: add minimum file size filtering to eofblocks scan
Support minimum file size filtering in the eofblocks scan. The
caller must set the XFS_EOF_FLAGS_MINFILESIZE flags bit and minimum
file size value in bytes.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_fs.h')
-rw-r--r-- | fs/xfs/xfs_fs.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/xfs/xfs_fs.h b/fs/xfs/xfs_fs.h index a19f9b205c15..6dda3f949b04 100644 --- a/fs/xfs/xfs_fs.h +++ b/fs/xfs/xfs_fs.h | |||
@@ -350,7 +350,8 @@ struct xfs_eofblocks { | |||
350 | gid_t eof_gid; | 350 | gid_t eof_gid; |
351 | prid_t eof_prid; | 351 | prid_t eof_prid; |
352 | __u32 pad32; | 352 | __u32 pad32; |
353 | __u64 pad64[13]; | 353 | __u64 eof_min_file_size; |
354 | __u64 pad64[12]; | ||
354 | }; | 355 | }; |
355 | 356 | ||
356 | /* eof_flags values */ | 357 | /* eof_flags values */ |
@@ -358,11 +359,13 @@ struct xfs_eofblocks { | |||
358 | #define XFS_EOF_FLAGS_UID (1 << 1) /* filter by uid */ | 359 | #define XFS_EOF_FLAGS_UID (1 << 1) /* filter by uid */ |
359 | #define XFS_EOF_FLAGS_GID (1 << 2) /* filter by gid */ | 360 | #define XFS_EOF_FLAGS_GID (1 << 2) /* filter by gid */ |
360 | #define XFS_EOF_FLAGS_PRID (1 << 3) /* filter by project id */ | 361 | #define XFS_EOF_FLAGS_PRID (1 << 3) /* filter by project id */ |
362 | #define XFS_EOF_FLAGS_MINFILESIZE (1 << 4) /* filter by min file size */ | ||
361 | #define XFS_EOF_FLAGS_VALID \ | 363 | #define XFS_EOF_FLAGS_VALID \ |
362 | (XFS_EOF_FLAGS_SYNC | \ | 364 | (XFS_EOF_FLAGS_SYNC | \ |
363 | XFS_EOF_FLAGS_UID | \ | 365 | XFS_EOF_FLAGS_UID | \ |
364 | XFS_EOF_FLAGS_GID | \ | 366 | XFS_EOF_FLAGS_GID | \ |
365 | XFS_EOF_FLAGS_PRID) | 367 | XFS_EOF_FLAGS_PRID | \ |
368 | XFS_EOF_FLAGS_MINFILESIZE) | ||
366 | 369 | ||
367 | 370 | ||
368 | /* | 371 | /* |