aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/dumpfs
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2010-12-29 12:31:18 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2010-12-29 12:31:18 +0000
commita738d4cf20dd9cdc71299d31229b62efa12443f2 (patch)
tree8ab612371e7500ee1c3bac44a09208490c294417 /sbin/dumpfs
parent8c2a54de80eefc3366a1a727b9056508d826354c (diff)
downloadsrc-a738d4cf20dd9cdc71299d31229b62efa12443f2.tar.gz
src-a738d4cf20dd9cdc71299d31229b62efa12443f2.zip
Add support for FS_TRIM to user-mode UFS utilities.
Reviewed by: mckusick, pjd, pho Tested by: pho MFC after: 1 month
Notes
Notes: svn path=/head/; revision=216798
Diffstat (limited to 'sbin/dumpfs')
-rw-r--r--sbin/dumpfs/dumpfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/dumpfs/dumpfs.c b/sbin/dumpfs/dumpfs.c
index 38c05f605ad8..fa562dc17e34 100644
--- a/sbin/dumpfs/dumpfs.c
+++ b/sbin/dumpfs/dumpfs.c
@@ -253,9 +253,11 @@ dumpfs(const char *name)
printf("fs_flags expanded ");
if (fsflags & FS_NFS4ACLS)
printf("nfsv4acls ");
+ if (fsflags & FS_TRIM)
+ printf("trim ");
fsflags &= ~(FS_UNCLEAN | FS_DOSOFTDEP | FS_NEEDSFSCK | FS_INDEXDIRS |
FS_ACLS | FS_MULTILABEL | FS_GJOURNAL | FS_FLAGS_UPDATED |
- FS_NFS4ACLS | FS_SUJ);
+ FS_NFS4ACLS | FS_SUJ | FS_TRIM);
if (fsflags != 0)
printf("unknown flags (%#x)", fsflags);
putchar('\n');