Package: e2fsprogs
Version: 1.46.2-2
Severity: normal

Dear Maintainer,

   * What led up to the situation?
Trying to create a filesystem on a file for loopback mounting


   * What exactly did you do that was ineffective
rm -f file
truncate file -s 1G
/sbin/mkfs.ext4 -D -E lazy_itable_init=0 -E lazy_journal_init=0 -i 12288 -F -m1
file
sync # for good measure
/sbin/e2fsck -fn file


   * What was the outcome of this action?
Block bitmap differences:  +(32768--32896) +(98304--98432) +(163840--163968)
Fix? no

Free blocks count wrong for group #1 (32639, counted=32768).
Fix? no
...
Padding at end of inode bitmap is not set. Fix? no

Inode bitmap differences: Group 1 inode bitmap does not match checksum.
IGNORED.
Group 2 inode bitmap does not match checksum.
IGNORED.
...
file: ********** WARNING: Filesystem still has errors **********

file: 11/87424 files (0.0% non-contiguous), 14323/262144 blocks


   * What outcome did you expect instead?
I would have liked a filesystem that passes e2fsck without problems.
If I run the mkfs.ext4 command without -D, I don't see the problem.

I speculate that mkfs exits before IO is completed, and some writes
don't happen.  But I really don't know.  Else perhaps the kernel keeps
an outdated copy of the filesystem in cache, that is not updated or flushed when the direct writes happen. I have not tested this on a
partition, I guess that is more likely to complete successfully.

-- System Information:
Debian Release: 11.4
  APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-16-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8), LANGUAGE=en_NZ:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages e2fsprogs depends on:
ii  libblkid1    2.36.1-8+deb11u1
ii  libc6        2.31-13+deb11u3
ii  libcom-err2  1.46.2-2
ii  libext2fs2   1.46.2-2
ii  libss2       1.46.2-2
ii  libuuid1     2.36.1-8+deb11u1
ii  logsave      1.46.2-2

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.4-1

-- no debconf information

Thanks,
Alex

Reply via email to