Package: e2fsprogs
Version: 1.45.6-1
Severity: wishlist
File: /sbin/e2fsck

With a read-only filesystem and the shared_blocks option set, e2fsck
allows multiply referenced blocks; however, it doesn't like multiple
references to inode bitmap blocks or block bitmap blocks. Deduplicating
such blocks works fine with the kernel implementation, and every other
part of e2fsprogs seems fine with it, but e2fsck complains:

ext2fs_check_desc: Corrupt group descriptor: bad block for inode bitmap
e2fsck: Group descriptors look bad... trying backup blocks...
e2fsck: Bad magic number in super-block while using the backup blockse2fsck: 
going back to original superblock
disk.img: clean, 71136/71136 files, 292051/292051 blocks

I tried a quick hack to ignore the ext2fs_test_block_bitmap2 checks in
ext2fs_check_desc if ext2fs_has_feature_shared_blocks(fs->super)
(entirely ignoring the unshare_blocks option), and that allows e2fsck to
pass without any complaint:

disk.img: clean, 71136/71136 files, 292051/292051 blocks

Please consider supporting this case in e2fsck.

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages e2fsprogs depends on:
ii  libblkid1    2.34-0.1
ii  libc6        2.30-4
ii  libcom-err2  1.45.6-1
ii  libext2fs2   1.45.6-1
ii  libss2       1.45.6-1
ii  libuuid1     2.34-0.1
ii  logsave      1.45.6-1

Versions of packages e2fsprogs recommends:
pn  e2fsprogs-l10n  <none>

Versions of packages e2fsprogs suggests:
pn  e2fsck-static  <none>
pn  fuse2fs        <none>
pn  gpart          <none>
ii  parted         3.3-4

-- no debconf information

Reply via email to