Package: e2fsprogs Version: 1.46.2-2 Severity: important X-Debbugs-Cc: [email protected]
"important" because this does cause data loss; not filing as release-critical because using mke2fs on a full disk or full disk image with a specified size to write a partition may be a niche use case. mke2fs with a specified size and the default-enabled "discard" option will discard data after that specified size. If using the size (and potentially offset) to write a partition within a disk or disk image, this will zero part of the following partition. Steps to reproduce: # Make a disk filled with 0x0a, to see which bytes get written yes '' | dd iflag=fullblock of=test.img bs=1M count=128 # Show the disk filled with 0x0a hd test.img # Make a 1M filesystem mkfs.ext4 -b 4096 -I 256 test.img 1M # Show the disk, which has the first 16M of data discarded hd test.img This also applies if you pass an offset; for instance, passing offset=4096 will discard data from 4096 to 16M+4096 -- System Information: Debian Release: 11.0 APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: arm64 Kernel: Linux 5.12.8 (SMP w/4 CPU threads) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages e2fsprogs depends on: ii libblkid1 2.36.1-7 ii libc6 2.31-12 ii libcom-err2 1.46.2-2 ii libext2fs2 1.46.2-2 ii libss2 1.46.2-2 ii libuuid1 2.36.1-7 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

