summaryrefslogtreecommitdiffstats
path: root/sbin/dumpfs/dumpfs.8
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2011-07-14 08:06:03 +0000
committerdelphij <delphij@FreeBSD.org>2011-07-14 08:06:03 +0000
commit06a305b8e2f200eb899a60dbc53e3e60e656f1c2 (patch)
tree3276eedc9ed8a9ad51cd74f46374885d1f4007de /sbin/dumpfs/dumpfs.8
parentab777938ae6369a3680885303b4b6a5e6dbe850e (diff)
downloadFreeBSD-src-06a305b8e2f200eb899a60dbc53e3e60e656f1c2.zip
FreeBSD-src-06a305b8e2f200eb899a60dbc53e3e60e656f1c2.tar.gz
Add a -l option to show file system's corresponding /dev/ufsid path.
This is useful for scripts that converts existing system's fstab to use their /dev/ufsid devices. MFC after: 2 weeks
Diffstat (limited to 'sbin/dumpfs/dumpfs.8')
-rw-r--r--sbin/dumpfs/dumpfs.811
1 files changed, 9 insertions, 2 deletions
diff --git a/sbin/dumpfs/dumpfs.8 b/sbin/dumpfs/dumpfs.8
index a489a47..858881a 100644
--- a/sbin/dumpfs/dumpfs.8
+++ b/sbin/dumpfs/dumpfs.8
@@ -28,7 +28,7 @@
.\" @(#)dumpfs.8 8.1 (Berkeley) 6/5/93
.\" $FreeBSD$
.\"
-.Dd May 8, 2011
+.Dd Jul 14, 2011
.Dt DUMPFS 8
.Os
.Sh NAME
@@ -37,6 +37,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl f
+.Op Fl l
.Op Fl m
.Ar filesys | device
.Sh DESCRIPTION
@@ -44,7 +45,8 @@ The
.Nm
utility prints out the UFS super block and cylinder group information
for the file system or special device specified, unless the
-.Fl f
+.Fl f ,
+.Fl l
or
.Fl m
flag is specified.
@@ -64,6 +66,11 @@ Fragment numbers may be converted to raw byte offsets by multiplying by the
fragment size, which may be useful when recovering deleted data.
.Pp
If
+.Fl l
+is specified, the pathname to the file system's container derived from
+its unique identifier is printed.
+.Pp
+If
.Fl m
is specified, a
.Xr newfs 8
OpenPOWER on IntegriCloud