|Summary:||sys-apps/util-linux: fsck fails with reiserfs external journal (fsck.reiserfs needs the --journal option)|
|Product:||Gentoo Linux||Reporter:||Joe Harvell <landshark>|
|Component:||[OLD] Core system||Assignee:||Gentoo's Team for Core System packages <base-system>|
|Package list:||Runtime testing required:||---|
|Bug Depends on:|
Description Joe Harvell 2010-01-19 17:13:24 UTC
I have several filesystems (including the root fs) that are reiserfs with an external journal. Unless I disable /etc/init.d/fsck (by creating a /fastboot file every time I boot), the system won't boot. /etc/init.d/fsck should cause the --journal option to be passed to reiserfsck specifying the journal device when the /etc/fstab entry indiciates. See example entry below dev/bayeux/root / reiserfs jdev=/dev/bayeux/root_journal,noatime 0 1 Reproducible: Always Steps to Reproduce: 1. create a reiserfsck filesystem with an external journal 2. create an /etc/fstab entry for that filesystem as shown in "Description" causing /etc/init.d/fsck to try to fsck it 3. boot Actual Results: fsck fails and prevents booting Expected Results: The filesystem is actually checked and booting occurs based on the results of the check
Comment 1 Joe Harvell 2010-01-19 18:15:46 UTC
Hmmm. Maybe the deficiency is in /sbin/fsck from the sys-apps/util-linux package (I have sys-apps/util-linux-2.17). fsck -A seems to be where the code is that parses file system options in /etc/fstab.
Comment 2 SpanKY 2010-01-27 00:00:51 UTC
it isnt a bug in openrc. whether util-linux should decode this automatically is hard to say since it seems to be a fs-specific issue.
Comment 3 Joe Harvell 2010-02-03 21:38:58 UTC
The mount command reads filesystem specific options when mounting filesystems. It seems like an oversight that the fsck code does not. Probably it was never considered.
Comment 4 SpanKY 2011-07-12 02:43:44 UTC
it is not the same thing. mount takes the "options" field as it is and passes it unmodified (for the most part) to the respective mount binary for all filesystem types. fsck needs to parse the field and extract a single option for a specific filesystem -- the journal option for reiserfs filesystems.