]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - debugfs/set_fields.c
Add support in debugfs's set_field command to specify array specifiers for
authorTheodore Ts'o <tytso@mit.edu>
Thu, 23 Dec 2004 19:11:34 +0000 (14:11 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 23 Dec 2004 19:11:34 +0000 (14:11 -0500)
commit08fd3f36c3a53eed446ef98f1e4426d05032b396
tree91aeaeb608a00c0485967e14e9ef8a8d08198ed9
parent1d667534e93e78eedbf2efcef6d7844041675f26
Add support in debugfs's set_field command to specify array specifiers for
fields to be set.  For example, to set i_block[2] for the resize inode to
be 42, simply issue the debugfs command:

set_inode <7> block[2] 42

Also added is the virtual field "bmap", which also takes an array index.
So to set the physical block mapping for logical block 1282 in the file
/test/inode to be 57, use the debugfs command:

set_inode /test/inode bmap[1282] 57
debugfs/ChangeLog
debugfs/set_fields.c