aboutsummaryrefslogtreecommitdiff
path: root/sbin/bsdlabel/bsdlabel.8
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2004-03-30 23:15:03 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2004-03-30 23:15:03 +0000
commit7747c959faa093746e31b34f32bc1b4feb5ae0ce (patch)
treebc36bf35289c604e4f11ef6bc896fd65b40b2917 /sbin/bsdlabel/bsdlabel.8
parenta6b03f428a48d288dca24f1f567907aba26074ee (diff)
downloadsrc-7747c959faa093746e31b34f32bc1b4feb5ae0ce.tar.gz
src-7747c959faa093746e31b34f32bc1b4feb5ae0ce.zip
Implement a '-f' flag to teach bsdlabel to work on files instead of
disk partitions.
Notes
Notes: svn path=/head/; revision=127650
Diffstat (limited to 'sbin/bsdlabel/bsdlabel.8')
-rw-r--r--sbin/bsdlabel/bsdlabel.826
1 files changed, 19 insertions, 7 deletions
diff --git a/sbin/bsdlabel/bsdlabel.8 b/sbin/bsdlabel/bsdlabel.8
index 7ee0065a244c..cbcac5d26ecb 100644
--- a/sbin/bsdlabel/bsdlabel.8
+++ b/sbin/bsdlabel/bsdlabel.8
@@ -44,38 +44,44 @@
.Sh SYNOPSIS
.Nm
.Op Fl A
-.Ar disk
+.Op Fl f
+.Ar disk/file
.Nm
.Fl w
.Op Fl \&An
.Op Fl B Op Fl b Ar boot
.Op Fl m Ar machine
-.Ar disk
+.Op Fl f
+.Ar disk/file
.Op Ar type
.Nm
.Fl e
.Op Fl \&An
.Op Fl B Op Fl b Ar boot
.Op Fl m Ar machine
-.Ar disk
+.Op Fl f
+.Ar disk/file
.Nm
.Fl R
.Op Fl \&An
.Op Fl B Op Fl b Ar boot
.Op Fl m Ar machine
-.Ar disk protofile
+.Op Fl f
+.Ar disk/file protofile
.Sh DESCRIPTION
The
.Nm
utility
installs, examines or modifies the
.Bx
-label on a disk partition.
+label on a disk partition, or on a file containing a partition image.
In addition,
.Nm
can install bootstrap code.
.Ss Disk Device Name
-When specifying the device,
+When specifying the device (i.e. when the
+.Fl f
+option is not used),
the
.Pa /dev/
path prefix may be omitted;
@@ -91,8 +97,14 @@ label.
If the option is not given, suitable values are set for these fields.
.Pp
The
+.Fl f
+option tells
+.Nm
+that the program will operate on a file instead of a disk partition.
+.Pp
+The
.Fl n
-stops the
+option stops the
.Nm
program right before the disk would have been modified, and displays
the result instead of writing it.