This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch master
in repository gfs2-utils.
commit f0a22996866d88d7364e1b434961611044227c8e
Author: Andrew Price <anprice(a)redhat.com>
Date: Wed Mar 8 14:58:30 2017 +0000
gfs2_edit: Clarify savemeta output file type in docs
Add .gz to savemeta filename examples in the man page and command help
to make it more clear that the output is a compressed file.
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/edit/hexedit.c | 6 +++---
gfs2/man/gfs2_edit.8 | 14 +++++++-------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/gfs2/edit/hexedit.c b/gfs2/edit/hexedit.c
index cd3f084..b67fde2 100644
--- a/gfs2/edit/hexedit.c
+++ b/gfs2/edit/hexedit.c
@@ -2158,7 +2158,7 @@ static void usage(void)
fprintf(stderr,"If only the device is specified, it enters into hexedit
mode.\n");
fprintf(stderr,"identify - prints out only the block type, not the
details.\n");
fprintf(stderr,"printsavedmeta - prints out the saved metadata blocks from a
savemeta file.\n");
- fprintf(stderr,"savemeta <file_system> <file> - save off your metadata
for analysis and debugging.\n");
+ fprintf(stderr,"savemeta <file_system> <file.gz> - save off your
metadata for analysis and debugging.\n");
fprintf(stderr," (The intelligent way: assume bitmap is correct).\n");
fprintf(stderr,"savemetaslow - save off your metadata for analysis and debugging.
The SLOW way (block by block).\n");
fprintf(stderr,"savergs - save off only the resource group information (rindex and
rgs).\n");
@@ -2227,8 +2227,8 @@ static void usage(void)
fprintf(stderr," gfs2_edit -p quota find di /dev/x/y\n");
fprintf(stderr," To set the Resource Group flags for rg #7 to 3.\n");
fprintf(stderr," gfs2_edit rgflags 7 3 /dev/sdc2\n");
- fprintf(stderr," To save off all metadata for /dev/vg/lv without
compression:\n");
- fprintf(stderr," gfs2_edit savemeta -z 0 /dev/vg/lv /tmp/metasave\n");
+ fprintf(stderr," To save off all metadata for /dev/vg/lv:\n");
+ fprintf(stderr," gfs2_edit savemeta /dev/vg/lv /tmp/metasave.gz\n");
}/* usage */
/**
diff --git a/gfs2/man/gfs2_edit.8 b/gfs2/man/gfs2_edit.8
index a48a38c..0b3528d 100644
--- a/gfs2/man/gfs2_edit.8
+++ b/gfs2/man/gfs2_edit.8
@@ -159,11 +159,11 @@ If \fInew_value\fR is not specified, the current rg_flags value will
be
printed but not modified. If \fInew_value\fR is specified, the rg_flags
field will be overwritten with the new value.
.TP
-\fBprintsavedmeta\fP \fI<filename>\fR
-Print off a list of blocks from <filename> that were saved with the savemeta
+\fBprintsavedmeta\fP \fI<filename.gz>\fR
+Print off a list of blocks from <filename.gz> that were saved with the savemeta
option.
.TP
-\fBsavemeta\fP \fI<device>\fR \fI<filename>\fR
+\fBsavemeta\fP \fI<device>\fR \fI<filename.gz>\fR
Save off the GFS2 metadata (not user data) for the file system on the
specified device to a file given by <filename>. You can use this option
to analyze file system problems without revealing sensitive information
@@ -174,14 +174,14 @@ in the bitmaps, resource groups or rindex file, this method may fail
and
you may need to use the savemetaslow option. The destination file is
compressed using gzip unless -z 0 is specified.
.TP
-\fBsavemetaslow\fP \fI<device>\fR \fI<filename>\fR
+\fBsavemetaslow\fP \fI<device>\fR \fI<filename.gz>\fR
Save off GFS2 metadata, as with the savemeta option, examining every
block in the file system for metadata. This option is less prone to failure
due to file system corruption than the savemeta option, but it is
extremely slow. The destination file is compressed using gzip unless
-z 0 is specified.
.TP
-\fBsavergs\fP \fI<device>\fR \fI<filename>\fR
+\fBsavergs\fP \fI<device>\fR \fI<filename.gz>\fR
Save off only the GFS2 resource group metadata for the file system on the
specified device to a file given by <filename>. The destination file is
compressed using gzip unless -z 0 is specified.
@@ -345,8 +345,8 @@ Print the resource group index system file located on device
/dev/sda1.
.TP
-gfs2_edit savemeta /dev/sda1 /tmp/our_fs
-Save off all metadata (but no user data) to file /tmp/our_fs.
+gfs2_edit savemeta /dev/sda1 /tmp/our_fs.gz
+Save off all metadata (but no user data) to file /tmp/our_fs.gz
.TP
gfs2_edit -p root /dev/my_vg/my_lv
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date