Whamcloud - gitweb
ChangeLog, mke2fs.c:
authorTheodore Ts'o <tytso@mit.edu>
Wed, 25 Oct 2000 03:01:37 +0000 (03:01 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 25 Oct 2000 03:01:37 +0000 (03:01 +0000)
  mke2fs.c (PRS): Applied Andreas Dilger's patch to make the -r -s
   handling a bit more sane.  (Even though -s is deprecated at this
   point.)
ChangeLog, expect.1:
  f_journal: Update to take into account new printing by the e2fsck
   program.
version.h:
  Update for upcoming WIP release.

misc/ChangeLog
misc/mke2fs.c
tests/ChangeLog
tests/f_journal/expect.1
version.h

index 9417800..5da2e14 100644 (file)
@@ -1,5 +1,9 @@
 2000-10-24    <tytso@snap.thunk.org>
 
+       * mke2fs.c (PRS): Applied Andreas Dilger's patch to make the -r -s
+               handling a bit more sane.  (Even though -s is deprecated
+               at this point.)
+
        * get_device_by_label.c: Apply fix from Erik Troan to support 16
                character labels.
 
index 4062bb4..a19b396 100644 (file)
@@ -737,12 +737,12 @@ static void PRS(int argc, char *argv[])
        int             reserved_ratio = 5;
        ino_t           num_inodes = 0;
        errcode_t       retval;
-       int             sparse_option = 0;
+       int             sparse_option = 1;
        char *          oldpath = getenv("PATH");
        struct ext2fs_sb *param_ext2 = (struct ext2fs_sb *) &param;
        char *          raid_opts = 0;
        char *          fs_type = 0;
-       const char *    feature_set = "filetype,sparse_super";
+       const char *    feature_set = "filetype";
        blk_t           dev_size;
 #ifdef linux
        struct          utsname ut;
@@ -1003,11 +1003,15 @@ static void PRS(int argc, char *argv[])
         */
        param.s_r_blocks_count = (param.s_blocks_count * reserved_ratio) / 100;
 
-#ifdef EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER
+       /* Turn off features not supported by the earlier filesystem version */
+       if (param.s_rev_level == 0) {
+               sparse_option = 0;
+               feature_set = NULL;
+       }
        if (sparse_option)
                param_ext2->s_feature_ro_compat |=
                        EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER;
-#endif
+
        if (feature_set && !strncasecmp(feature_set, "none", 4))
                feature_set = NULL;
        if (feature_set && e2p_edit_feature(feature_set,
index 0672e40..2803954 100644 (file)
@@ -1,3 +1,8 @@
+2000-10-24    <tytso@snap.thunk.org>
+
+       * f_journal: Update to take into account new printing by the
+               e2fsck program.
+
 2000-08-22    <tytso@valinux.com>
 
        * f_journal: Make the test check for a wide variety of mixed sizes
index 4f7cd87..b3ea369 100644 (file)
@@ -1,3 +1,4 @@
+test_filesys: recovering journal
 Clearing orphaned inode 37 (uid=0, gid=0, mode=0100600, size=4096)
 Clearing orphaned inode 90 (uid=0, gid=0, mode=040700, size=1024)
 Clearing orphaned inode 67 (uid=0, gid=0, mode=0100600, size=4096)
index 15bf089..b41cf99 100644 (file)
--- a/version.h
+++ b/version.h
@@ -7,4 +7,4 @@
  */
 
 #define E2FSPROGS_VERSION "1.20-WIP"
-#define E2FSPROGS_DATE "20-Aug-2000"
+#define E2FSPROGS_DATE "24-Oct-2000"