4ee26699823c945b1894880f53cea3b45b5e3a20 |
|
24-Oct-2015 |
Darrick J. Wong <darrick.wong@oracle.com> |
debugfs: clean up feature test macros with predicate functions Create separate predicate functions to test/set/clear feature flags, thereby replacing the wordy old macros. Furthermore, clean out the places where we open-coded feature tests. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/debugfs/filefrag.c
|
716a3c3536f87372ce16b5b678b9957dabf6d638 |
|
03-Mar-2014 |
Zheng Liu <wenqing.lz@taobao.com> |
libext2fs: handle inline_data in block iterator function After applied this commit (a7f4c635), we have banned to traverse blocks for an inode which has inline data because no block belongs to it. But before calling this function, we need to check inline data flag. This commit add a sanity check ext2fs_inode_has_valid_blocks2() to fix them except that ext2fs_expand_dir because it will be fixed by another patch. Meanwhile in this commit it fixes a bug that when we kill a file we could leak an inode. Signed-off-by: Zheng Liu <wenqing.lz@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/filefrag.c
|
1b977a0fad7be60d444228b5802683ff6b78baf2 |
|
09-Dec-2013 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next
|
5093775ab446d375ea753218c364be31cf82f3cc |
|
09-Dec-2013 |
Zheng Liu <wenqing.lz@taobao.com> |
debugfs: update usage message for open and filefrag The ussage message for the open and filefrag commands were missing options; this commit fixes this. Signed-off-by: Zheng Liu <wenqing.lz@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/filefrag.c
|
70f4632b626e3db94dd02c9dc9b4e643ffb0d048 |
|
08-Jun-2013 |
Jan Kara <jack@suse.cz> |
libext2fs: provide functions to safely access name_len and file_type Accessing name_len (and file_type) in ext4_dir_entry structure is somewhat problematic because on big endian architecture we need to now whether we are really dealing with ext4_dir_entry (which has u16 name_len which needs byte swapping) or ext4_dir_entry_2 (which has u8 name_len which must not be byte swapped). Currently the code is somewhat surprising and name_len is always treated as u16 and byte swapped (flag EXT2_DIRBLOCK_V2_STRUCT isn't ever used) and then masking of name_len is used to access real name_len or file_type. Doing things this way in applications using libext2fs is unexpected to say the least (more natural is to type struct ext4_dir_entry * to struct ext4_dir_entry_2 * but that gives wrong results on big endian architectures. So provide helper functions that give endian-safe access to these fields. Also convert users in e2fsprogs to use these functions. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/debugfs/filefrag.c
|
3cebf9c1029ca983ebbbae79f7905a02d087ff98 |
|
17-Nov-2011 |
Theodore Ts'o <tytso@mit.edu> |
debugfs: fix gcc -Wall complaints Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/filefrag.c
|
c4ab66c526c2f9bdff2e9abb817287b585e2e95d |
|
17-Nov-2011 |
Theodore Ts'o <tytso@mit.edu> |
debugfs: add filefrag command Add the ability to report on the fragmentation of a file on a file system opened using debugfs. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/filefrag.c
|