+Mon Nov 24 06:48:00 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * pass1.c (e2fsck_pass1_check_device_inode): For now, only check
+ to make sure the extra i_blocks in a device are cleared if
+ the immutable flag is set.
+
+ * util.c (print_resource_track): Fix typo which caused the
+ time/resource tracking to print "Pass 1 :" instead of
+ "Pass 1: ".
+
Thu Nov 20 16:02:23 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
* pass3.c (expand_directory): Fix bug which could cause core dump
{
int i;
- for (i=4; i < EXT2_N_BLOCKS; i++)
- if (inode->i_block[i])
- return 0;
+ /*
+ * We should be able to do the test below all the time, but
+ * because the kernel doesn't forcibly clear the device
+ * inode's additional i_block fields, there are some rare
+ * occasions when a legitimate device inode will have non-zero
+ * additional i_block fields. So for now, we only complain
+ * when the immutable flag is set, which should never happen
+ * for devices. (And that's when the problem is caused, since
+ * you can't set or clear immutable flags for devices.) Once
+ * the kernel has been fixed we can change this...
+ */
+ if (inode->i_flags & EXT2_IMMUTABLE_FL) {
+ for (i=4; i < EXT2_N_BLOCKS; i++)
+ if (inode->i_block[i])
+ return 0;
+ }
return 1;
}
gettimeofday(&time_end, 0);
if (desc)
- printf("%s :", desc);
+ printf("%s: ", desc);
#ifdef HAVE_GETRUSAGE
getrusage(RUSAGE_SELF, &r);
* redistributed under the GNU Public License.
*/
-#define E2FSPROGS_VERSION "1.11-WIP"
-#define E2FSPROGS_DATE "25-Oct-97"
+#define E2FSPROGS_VERSION "1.12-WIP"
+#define E2FSPROGS_DATE "23-Nov-97"