2001-05-03 Theodore Tso <tytso@valinux.com>
+ * e2image.8.in: New manual page
+
+ * badblocks.8.in, e2label.8.in, mke2fs.8.in mklost+found.8.in,
+ tune2fs.8.in: Update location of e2fsprogs to be
+ http://e2fsprogs.sourceforge.net.
+
+ * dumpe2fs.c (main): Add new flag, -i, which will allow dumpe2fs
+ to dump out the filesystem statistics from an ext2 image
+ file.
+
* e2image.c (main): Fix format of e2image to be easier to be parse
by ext2fs_open().
SPROGS= mke2fs badblocks tune2fs dumpe2fs e2image @FSCK_PROG@
USPROGS= mklost+found
SMANPAGES= tune2fs.8 mklost+found.8 mke2fs.8 dumpe2fs.8 badblocks.8 \
- e2label.8 @FSCK_MAN@
+ e2label.8 e2image.8 @FSCK_MAN@
UPROGS= chattr lsattr uuidgen
UMANPAGES= chattr.1 lsattr.1 uuidgen.1
e2label.8: $(DEP_SUBSTITUTE) $(srcdir)/e2label.8.in
$(SUBSTITUTE) $(srcdir)/e2label.8.in e2label.8
+e2image.8: $(DEP_SUBSTITUTE) $(srcdir)/e2image.8.in
+ $(SUBSTITUTE) $(srcdir)/e2image.8.in e2image.8
+
dumpe2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/dumpe2fs.8.in
$(SUBSTITUTE) $(srcdir)/dumpe2fs.8.in dumpe2fs.8
implemented by David Beattie <dbeattie@softhome.net>.
.SH AVAILABILITY
.B badblocks
-is part of the e2fsprogs package and is available for anonymous
-ftp from tsx-11.mit.edu in /pub/linux/packages/ext2fs.
+is part of the e2fsprogs package and is available from anonymous
+http://e2fsprogs.sourceforge.net.
.SH SEE ALSO
.BR e2fsck (8),
.BR mke2fs (8)
.SH SYNOPSIS
.B dumpe2fs
[
-.B \-bfhxV
+.B \-bfhixV
]
[
.B \-ob
only display the superblock information and not any of the block
group descriptor detail information.
.TP
+.B \-i
+display the filesystem data from an image file created by
+.BR e2image ,
+using
+.I device
+as the pathname to the image file.
+.TP
.B \-x
print the detailed group information block numbers in hexadecimal format
.TP
was written by Remy Card <Remy.Card@linux.org>.
.SH AVAILABILITY
.B dumpe2fs
-is part of the e2fsprogs package and is available for anonymous
-ftp from tsx-11.mit.edu in /pub/linux/packages/ext2fs.
+is part of the e2fsprogs package and is available from anonymous
+http://e2fsprogs.sourceforge.net.
.SH SEE ALSO
.BR e2fsck (8),
.BR mke2fs (8),
.BR tune2fs (8)
+
static void usage(void)
{
- fprintf (stderr, _("Usage: %s [-bfhxV] [-ob superblock] "
+ fprintf (stderr, _("Usage: %s [-bfhixV] [-ob superblock] "
"[-oB blocksize] device\n"), program_name);
exit (1);
}
int print_badblocks = 0;
int use_superblock = 0;
int use_blocksize = 0;
+ int image_dump = 0;
int force = 0;
int flags;
int header_only = 0;
if (argc && *argv)
program_name = *argv;
- while ((c = getopt (argc, argv, "bfhxVo:")) != EOF) {
+ while ((c = getopt (argc, argv, "bfhixVo:")) != EOF) {
switch (c) {
case 'b':
print_badblocks++;
case 'h':
header_only++;
break;
+ case 'i':
+ image_dump++;
+ break;
case 'o':
if (optarg[0] == 'b')
use_superblock = atoi(optarg+1);
flags = EXT2_FLAG_JOURNAL_DEV_OK;
if (force)
flags |= EXT2_FLAG_FORCE;
+ if (image_dump)
+ flags |= EXT2_FLAG_IMAGE_FILE;
+
retval = ext2fs_open (device_name, flags, use_superblock,
use_blocksize, unix_io_manager, &fs);
if (retval) {
--- /dev/null
+.\" -*- nroff -*-
+.\" Copyright 2001 by Theodore Ts'o. All Rights Reserved.
+.\" This file may be copied under the terms of the GNU Public License.
+.\"
+.TH E2IMAGE 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
+.SH NAME
+e2image \- Save critical ext2 filesystem data to a file
+.SH SYNOPSIS
+.B e2image
+.I device
+.I image-file
+.SH DESCRIPTION
+.B e2image
+will save critical filesystem data on the ext2 filesystem located on
+display or change the filesystem label on the ext2 filesystem located on
+.I device
+to a file.
+.PP
+.SH AUTHOR
+.B e2label
+was written by Theodore Ts'o (tytso@mit.edu).
+.SH AVAILABILITY
+.B e2image
+is part of the e2fsprogs package and is available from anonymous
+http://e2fsprogs.sourceforge.net.
+.SH SEE ALSO
+.BR dumpe2fs (8),
+.BR debugfs (8)
+
.PP
.SH AUTHOR
.B e2label
-was written by Andries Brouwer (aeb@cwi.nl).
+was written by Theodore Ts'o (tytso@mit.edu).
.SH AVAILABILITY
.B e2label
-is part of the e2fsprogs package and is available for anonymous
-ftp from tsx-11.mit.edu in /pub/linux/packages/ext2fs.
+is part of the e2fsprogs package and is available from anonymous
+http://e2fsprogs.sourceforge.net.
.SH SEE ALSO
.BR mke2fs (8),
.BR tune2fs (8)
There may be other ones. Please, report them to the author.
.SH AVAILABILITY
.B mke2fs
-is part of the e2fsprogs package and is available for anonymous
-ftp from tsx-11.mit.edu in /pub/linux/packages/ext2fs.
+is part of the e2fsprogs package and is available from anonymous
+http://e2fsprogs.sourceforge.net.
.SH SEE ALSO
.BR badblocks (8),
.BR dumpe2fs (8),
There are none :-)
.SH AVAILABILITY
.B mklost+found
-is part of the e2fsprogs package and is available for anonymous
-ftp from tsx-11.mit.edu in /pub/linux/packages/ext2fs.
+is part of the e2fsprogs package and is available from anonymous
+http://e2fsprogs.sourceforge.net.
.SH SEE ALSO
.BR e2fsck (8),
.BR mke2fs (8)
Timedependent checking was added by Uwe Ohse <uwe@tirka.gun.de>.
.SH AVAILABILITY
.B tune2fs
-is part of the e2fsprogs package and is available for anonymous
-ftp from tsx-11.mit.edu in /pub/linux/packages/ext2fs.
+is part of the e2fsprogs package and is available from anonymous
+http://e2fsprogs.sourceforge.net.
.SH SEE ALSO
.BR dumpe2fs (8),
.BR e2fsck (8),