diff options
author | Theodore Ts'o <tytso@mit.edu> | 2000-02-11 15:55:07 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2000-02-11 15:55:07 +0000 |
commit | 1917875fcd16428d14eb5a86acf414472bc216f1 (patch) | |
tree | 7b2342c616ac92a173b94be7b9de69677e5171db /e2fsck/pass1b.c | |
parent | 5a63dd28f23e31f4ed47073b558fc701adf83536 (diff) | |
download | e2fsprogs-1917875fcd16428d14eb5a86acf414472bc216f1.tar.gz |
Many files:
unix.c (main): If compression is enabled on the filesystem, print a
warning message (for now).
message.c: Add new compression shortcut: @c == compress
problem.c, problem.h (PR_1_COMPR_SET): Add new error code.
pass1.c (check_blocks): If the inode has EXT2_COMPRBLK_FL flag set,
check to see if the filesystem supports compression. If it does pass
this information down to process_block() so it can treat the
compressed block flag words correctly. If not, offer to clear the
flag, since it shouldn't be set.
(process_block): If an inode has the compressed inode flag set, allow
EXT2FS_COMPRESSED_BLKADDR.
pass1b.c (process_pass1b_block, delete_file_block, clone_file_block):
pass2.c (deallocate_inode_block): Use HOLE_BLKADDR to check to see if
the block can be skipped.
ChangeLog, Makefile.in:
Makefile.in: Exclude the internationalization files from being
distributed.
ChangeLog, configure, configure.in:
configure.in: Add support for --enable-compression. This is
experimental code only for now, which is why it's under --enable test.
Once it's stable, it will always be compiled in.
TODO:
Commit additional TODO items.
Diffstat (limited to 'e2fsck/pass1b.c')
-rw-r--r-- | e2fsck/pass1b.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/e2fsck/pass1b.c b/e2fsck/pass1b.c index a1cbf18e..5db39ab2 100644 --- a/e2fsck/pass1b.c +++ b/e2fsck/pass1b.c @@ -241,7 +241,7 @@ int process_pass1b_block(ext2_filsys fs, int i; e2fsck_t ctx; - if (!*block_nr) + if (HOLE_BLKADDR(*block_nr)) return 0; p = (struct process_block_struct *) priv_data; ctx = p->ctx; @@ -493,7 +493,7 @@ static int delete_file_block(ext2_filsys fs, pb = (struct process_block_struct *) priv_data; ctx = pb->ctx; - if (!*block_nr) + if (HOLE_BLKADDR(*block_nr)) return 0; if (ext2fs_test_block_bitmap(ctx->block_dup_map, *block_nr)) { @@ -567,7 +567,7 @@ static int clone_file_block(ext2_filsys fs, ctx = cs->ctx; - if (!*block_nr) + if (HOLE_BLKADDR(*block_nr)) return 0; if (ext2fs_test_block_bitmap(ctx->block_dup_map, *block_nr)) { |