aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/dumpfs
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2011-03-23 08:33:12 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2011-03-23 08:33:12 +0000
commit9775d5ebdf9aad0c1930f762ca1b154095049756 (patch)
tree840d0c489e5de0c87e10a2648d634d63b1a5adc0 /sbin/dumpfs
parent06f0d80dc65c0a67ddbceae925ef2c728ef602cc (diff)
downloadsrc-9775d5ebdf9aad0c1930f762ca1b154095049756.tar.gz
src-9775d5ebdf9aad0c1930f762ca1b154095049756.zip
Add support for displaying newfs flags for SU+J and TRIM.
Notes
Notes: svn path=/head/; revision=219899
Diffstat (limited to 'sbin/dumpfs')
-rw-r--r--sbin/dumpfs/dumpfs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/dumpfs/dumpfs.c b/sbin/dumpfs/dumpfs.c
index fa562dc17e34..eb92ba7ddd02 100644
--- a/sbin/dumpfs/dumpfs.c
+++ b/sbin/dumpfs/dumpfs.c
@@ -402,7 +402,9 @@ marshal(const char *name)
printf("-g %d ", fs->fs_avgfilesize);
printf("-h %d ", fs->fs_avgfpdir);
/* -i is dumb */
- /* -j..l unimplemented */
+ if (fs->fs_flags & FS_SUJ)
+ printf("-j ");
+ /* -k..l unimplemented */
printf("-m %d ", fs->fs_minfree);
/* -n unimplemented */
printf("-o ");
@@ -419,6 +421,8 @@ marshal(const char *name)
}
/* -p..r unimplemented */
printf("-s %jd ", (intmax_t)fsbtodb(fs, fs->fs_size));
+ if (fs->fs_flags & FS_TRIM)
+ printf("-t ");
printf("%s ", disk.d_name);
printf("\n");