Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301541 - sys-apps/util-linux: fsck fails with reiserfs external journal (fsck.reiserfs needs the --journal option)
Summary: sys-apps/util-linux: fsck fails with reiserfs external journal (fsck.reiserfs...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://thread.gmane.org/gmane.linux.u...
Whiteboard:
Keywords:
Depends on:
Blocks: 321423
  Show dependency tree
 
Reported: 2010-01-19 17:13 UTC by Joe Harvell
Modified: 2011-07-12 03:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 gentoo-dev 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 gentoo-dev 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.