diff options
Diffstat (limited to 'man/fsadm.8.in')
-rw-r--r-- | man/fsadm.8.in | 80 |
1 files changed, 45 insertions, 35 deletions
diff --git a/man/fsadm.8.in b/man/fsadm.8.in index eeec2d32..9f475614 100644 --- a/man/fsadm.8.in +++ b/man/fsadm.8.in @@ -1,64 +1,74 @@ .TH "FSADM" "8" "LVM TOOLS #VERSION#" "Red Hat, Inc" "\"" .SH "NAME" fsadm \- utility to resize or check filesystem on a device -.SH "SYNOPSIS" +.SH SYNOPSIS .B fsadm -.RI [options]\ check\ device - +.RI [ options ] +.B check +.I device +.sp .B fsadm -.RI [options]\ resize\ device\ [new_size[BKMGTEP]] - -.SH "DESCRIPTION" -\fBfsadm\fR utility resizes or checks the filesystem on a device. -It tries to use the same API for \fBext2/ext3/ext4\fR, -\fBReiserFS\fR and \fBXFS\fR filesystem. -.SH "OPTIONS" +.RI [ options ] +.B resize +.I device +.RI [ new_size [ BKMGTEP ]] +.sp +.SH DESCRIPTION +.B fsadm +utility checks or resizes the filesystem on a device. +It tries to use the same API for +.IR ext2 , ext3 , ext4 , ReiserFS +and \fIXFS\fP filesystem. +.SH OPTIONS .TP -\fB\-h \-\-help\fR -\(em print help message +.BR \-h ", " \-\-help +Display the help text. .TP -\fB\-v \-\-verbose\fR -\(em be more verbose +.BR \-v ", " \-\-verbose +Be more verbose. .TP -\fB\-e \-\-ext\-offline\fR -\(em unmount ext2/ext3/ext4 filesystem before doing resize +.BR \-e ", " \-\-ext\-offline +Unmount ext2/ext3/ext4 filesystem before doing resize. .TP -\fB\-f \-\-force\fR -\(em bypass some sanity checks +.BR \-f ", " \-\-force +Bypass some sanity checks. .TP -\fB\-n \-\-dry\-run\fR -\(em print commands without running them +.BR \-n ", " \-\-dry\-run +Print commands without running them. .TP -\fB\-y \-\-yes\fR -\(em answer "yes" at any prompts +.BR \-y ", " \-\-yes +Answer "yes" at any prompts. .TP -\fBnew_size\fR -\(em Absolute number of filesystem blocks to be in the filesystem, +.I new_size +Absolute number of filesystem blocks to be in the filesystem, or an absolute size using a suffix (in powers of 1024). If new_size is not supplied, the whole device is used. -.SH "DIAGNOSTICS" +.SH DIAGNOSTICS On successful completion, the status code is 0. A status code of 2 indicates the operation was interrupted by the user. A status code of 3 indicates the requested check operation could not be performed -because the filesystem is mounted and does not support an online fsck. +because the filesystem is mounted and does not support an online +.BR fsck (8). A status code of 1 is used for other failures. -.SH "EXAMPLES" -"fsadm \-e \-y resize /dev/vg/test 1000M" tries to resize the filesystem -on logical volume /dev/vg/test. If /dev/vg/test contains ext2/ext3/ext4 +.SH EXAMPLES +Resize the filesystem on logical volume /dev/vg/test to 1000 megabytes. +If /dev/vg/test contains ext2/ext3/ext4 filesystem it will be unmounted prior the resize. All [y|n] questions will be answered 'y'. -.SH "ENVIRONMENT VARIABLES" +.sp +.B fsadm \-e \-y resize /dev/vg/test 1000M +.SH ENVIRONMENT VARIABLES .TP -\fBTMPDIR\fP -Where the temporary directory should be created. -.TP -.BR -.SH "SEE ALSO" +.B TMPDIR +The temporary directory name for mount points. Defaults to "/tmp". + +.SH SEE ALSO .BR lvm (8), .BR lvresize (8), .BR lvm.conf (5), +.BR fsck (8), .BR tune2fs (8), .BR resize2fs (8), .BR reiserfstune (8), |