Package: reiserfsprogs Version: 1:3.6.19-6 Severity: normal Tags: patch --- Please enter the report below this line. ---
In headless servers, it is common to set FSCKFIX=yes in /etc/default/rcS, so the system will not wait for user interaction if it finds a problem in a filesystem, but rather try to solve it on its own. Other fsck.* backends, when called with the '-y' flags, fsck.reiserfs, however, does much more expensive check when called with -y than the other back-ends (which will just skip the check if they see that the fs is clean, for instance). To get this behaviour from reiserfsck, we need to call it with both the -a and -y flags. Fortunately, fsck.reiserfs is a wrapper shell script, where we can check for the -y flag and add the -a flag to it without altering the behaviour of reiserfsck itself. --- System information. --- Architecture: i386 Kernel: Linux 2.6.24-19-generic Debian Release: lenny/sid 500 hardy-updates www.nic.funet.fi 500 hardy-security www.nic.funet.fi 500 hardy www.nic.funet.fi --- Package information. --- Depends (Version) | Installed =======================-+-=========== libc6 (>= 2.6) | 2.7-10ubuntu3 libuuid1 | 1.40.8-2ubuntu2
--- fsck.reiserfs-dpkg.dist 2008-09-06 19:46:44.000000000 -0300 +++ fsck.reiserfs 2008-09-06 20:02:50.000000000 -0300 @@ -1,4 +1,18 @@ #! /bin/sh +# Treat the -y flag the same way other fsck.* instances do +ADD_OPTS="" +for opt +do + case "$opt" in + --) + break + ;; + -y) + ADD_OPTS="-a" + ;; + esac +done + # Be sure to invoke reiserfsck quitely for booting over slow consoles -exec /sbin/reiserfsck -q "$@" +exec /sbin/reiserfsck -q $ADD_OPTS "$@"