Let e2fsck allow use of the TEA hash.
Mke2fs will no longer abort if it can't zero blocks at the end of the
filesystem. (Addresses Debian Bug #155007)
2002-08-17 Theodore Ts'o <tytso@mit.edu>
+ * e2fsck.8.in: Add clarifying text describing how e2fsck works
+ with ext3 filesytems. (Addresses Debian bug #145044).
+
+ * pass1.c (handle_htree): Add support for EXT2_HASH_TEA
+
* e2fsck.h, e2fsck.c (e2fsck_allocate_context): Add new field to
the e2fsck context, ext_attr_ver, which specifies the EA
format version.
.I device
.SH DESCRIPTION
.B e2fsck
-is used to check a Linux second extended file system (e2fs). E2fsck also
+is used to check a Linux second extended file system (ext2fs).
+.B E2fsck
+also
supports ext2 filesystems countaining a journal, which are
-also sometimes known as ext3 filesystems.
+also sometimes known as ext3 filesystems, by first applying the journal
+to the filesystem before continuing with normal
+.B e2fsck
+processing. After the journal has been applied, a filesystem will
+normally be marked as clean. Hence, for ext3 filesystems,
+.B e2fsck
+will normally run the journal and exit, unless its superblock
+indicates that further checking is required.
.PP
.I device
is the device file where the filesystem is stored (e.g.
pctx->num = root->hash_version;
if ((root->hash_version != EXT2_HASH_LEGACY) &&
(root->hash_version != EXT2_HASH_HALF_MD4) &&
+ (root->hash_version != EXT2_HASH_TEA) &&
fix_problem(ctx, PR_1_HTREE_HASHV, pctx))
return 1;
+2002-08-17 Theodore Ts'o <tytso@mit.edu>
+
+ * fsck.8.in: Fix typo in man page, and clarified text regarding
+ options specifiers for -t option. (Addresses Debian bug
+ #145044)
+
+ * mke2fs.c (main): If there is a problem zeroing blocks at the end
+ of the filesystem, don't abort mke2fs. Addresses Debian
+ bug #155007.
+
2002-08-16 Theodore Ts'o <tytso@mit.edu>
* e2image.c (write_raw_image_file): Check for an extended
]
.I filesys [ ... ]
[\-\-] [
-.B fsck-options
+.B fs-specific-options
]
.SH DESCRIPTION
.B fsck
-is used to check and optionally repair a one or more Linux file systems.
+is used to check and optionally repair one or more Linux file systems.
.I filesys
can be a device name (e.g.
.IR /dev/hdc1 ", " /dev/sdb2 ),
.B \-s
Serialize
.B fsck
-operations. This is a good idea if you checking multiple
+operations. This is a good idea if you are checking multiple
filesystems and the checkers are in an interactive mode. (Note:
.BR e2fsck (8)
runs in an interactive mode by default. To make
Options specifiers may be included in the comma separated
.IR fslist .
They must have the format
-.BI opts= fs-option\fR,
-and may be prefixed by a negation operator. If an options specifier is
-present, then only filesystems whose
+.BI opts= fs-option\fR.
+If an options specifier is present, then only filesystems which contain
+.I fs-option
+in their mount options field of
.B /etc/fstab
-entry do (or do not, if the options specifier was prefixed by a negation
-operator) contain
+will be checked. If the options specifier is prefixed by a negation
+operator, then only
+those filesystems that do not have
.I fs-option
-in their options field of the
+in their mount options field of
+.B /etc/fstab
+will be checked.
+.sp
+For example, if
+.B opts=ro
+appears in
+.IR fslist ,
+then only filesystems listed in
.B /etc/fstab
-file will be checked.
+with the
+.B ro
+option will be checked.
.sp
For compatibility with Mandrake distributions whose boot scripts
depend upon an unauthorized UI change to the
Produce verbose output, including all file system-specific commands
that are executed.
.TP
-.B fsck-options
-Options which which are not understood by
+.B fs-specific-options
+Options which are not understood by
.B fsck
are passed to the filesystem-specific checker. These arguments
.B must
if (next_update_incr < 1)
next_update_incr = 1;
for (j=0; j < num; j += STRIDE_LENGTH, blk += STRIDE_LENGTH) {
- if (num-j > STRIDE_LENGTH)
+ count = num - j;
+ if (count > STRIDE_LENGTH)
count = STRIDE_LENGTH;
- else
- count = num - j;
retval = io_channel_write_blk(fs->io, blk, count, buf);
if (retval) {
if (ret_count)
if (retval) {
com_err(program_name, retval,
- _("zeroing block %u at end of filesystem"),
+ _("while zeroing block %u at end of filesystem"),
ret_blk);
- exit(1);
}
write_inode_tables(fs);
create_root_dir(fs);
.BI \-U " UUID"
Set the universally unique identifier (UUID) of the filesystem to
.IR UUID .
-The format of the UUID is a series of hex digits separated by hypthens,
+The format of the UUID is a series of hex digits separated by hyphens,
like this:
"c1b9d5a2-f162-11cf-9ece-0020afc76f16".
The