]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
ChangeLog, debugfs.c, setsuper.c:
authorTheodore Ts'o <tytso@mit.edu>
Sat, 30 Dec 2000 20:26:31 +0000 (20:26 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 30 Dec 2000 20:26:31 +0000 (20:26 +0000)
  setsuper.c (find_field): Strip the s_prefix if given for ssv fields.
   (Suggested by Andreas Dilger)
  debugfs.c (do_modify_inode): Add the ability to set the inode
   generation number.  (Suggested by Andreas Dilger)

debugfs/ChangeLog
debugfs/debugfs.c
debugfs/setsuper.c

index 3169c137c0809a7984dafae1463dfd28bb8cd67a..76e2d95ab8a5e443d7a143d3d353dec07b4c2dcc 100644 (file)
@@ -1,3 +1,11 @@
+2000-12-30    <tytso@snap.thunk.org>
+
+       * setsuper.c (find_field): Strip the s_prefix if given for ssv
+               fields.   (Suggested by Andreas Dilger)
+
+       * debugfs.c (do_modify_inode): Add the ability to set the inode
+               generation number.  (Suggested by Andreas Dilger)
+
 2000-08-23    <tytso@valinux.com>
 
        * util.c (string_to_inode): Use strtoul instead of atoi, so that
index 43061bab7c9d3749891a52b076f65e0aadd53de9..a38b232d44131e5103cd0e08f15b9ffb2d2ab5af 100644 (file)
@@ -811,6 +811,7 @@ void do_modify_inode(int argc, char *argv[])
        modify_u16(argv[0], "Link count", decimal_format, &inode.i_links_count);
        modify_u32(argv[0], "Block count", decimal_format, &inode.i_blocks);
        modify_u32(argv[0], "File flags", hex_format, &inode.i_flags);
+       modify_u32(argv[0], "Generation", hex_format, &inode.i_generation);
 #if 0
        modify_u32(argv[0], "Reserved1", decimal_format, &inode.i_reserved1);
 #endif
index e57aa3925da054434c523b23ce9e352772991cf8..d8a724a4201e22dc67e25bfa04313103deebf05f 100644 (file)
@@ -84,6 +84,8 @@ static struct super_set_info *find_field(char *field)
 {
        struct super_set_info *ss;
 
+       if (strncmp(field, "s_", 2) == 0)
+               field += 2;
        for (ss = super_fields ; ss->name ; ss++) {
                if (strcmp(ss->name, field) == 0)
                        return ss;