Package: e2fsprogs
Version: 1.41.3-1
Severity: normal
fsck does not behave sanely if asked to fsck an object at a
nonabsolute path.
To wit, first set up an ext2 image:
# mkdir /tmp/test
# cd /tmp/test
# dd if=/dev/zero of=image bs=4096 count=1024
# mke2fs image
Now run:
# fsck image
This produces fsck.ext3's usage message.
Now try
# fsck -text2 image
This does nothing at all. Same with "./image"; only an absolute path
causes it to actually run e2fsck.
Use of -V shows that it's decided you meant to fsck all filesystems
(it appears to be undocumented behavior that -A is implied by default,
btw), and "image" should be treated as a flag to pass to the per-fs
fsck program; this causes it to run (on my system)
fsck.ext3 image /dev/sda6
which prompts the usage message; in the second case it tries to fsck
all none of the ext2 volumes I have in fstab and does nothing.
ISTM that a word that doesn't begin with - should be treated as a
volume name, not as an option, even if it doesn't begin with /.
-- System Information:
Debian Release: 5.0.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages e2fsprogs depends on:
ii e2fslibs 1.41.3-1 ext2 filesystem libraries
ii libblkid1 1.41.3-1 block device id library
ii libc6 2.7-18lenny2 GNU C Library: Shared libraries
ii libcomerr2 1.41.3-1 common error description library
ii libss2 1.41.3-1 command-line interface parsing lib
ii libuuid1 1.41.3-1 universally unique id library
e2fsprogs recommends no packages.
Versions of packages e2fsprogs suggests:
pn e2fsck-static <none> (no description available)
pn gpart <none> (no description available)
pn parted <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]