On Sunday 15 August 2010, 04:03:20 Linda Walsh wrote:
> Dave Chinner wrote:
> > On Sat, Aug 14, 2010 at 01:48:01PM -0700, Linda A. Walsh wrote:
> >> Some time ago, when I upgraded a system, I ran into problems when
> >> it hit a file system that was offline. It wasn't a critical
> >> partition, so it normally wouldn't have been an issue, but somewhere
> >> along the line
> >> someone mangled fsck.xfs.
> > fsck.xfs is behaving identically to e2fsck when presented with an
> > invalid block device - it exits with an error of 8, which is defined
> > as "operational error" in the e2fsck man page.
> That may be fine for the ext2 fs, but I am asserting that in actual
> practice, with xfs, it does more harm than good.
Linda, you're barking at the wrong tree, IMHO.
If xfs would tolerate any configuration failure, a lot of people would
complain for a _good_ reason.
> > That sounds like a problem with the distro init scripts or you've
> > stuffed up your /etc/fstab config (i.e. fs_passno is wrong). Indeed,
> > setting fs_passno = 0 will cause the filesysetm fsck to be skipped
> > completely on boot, regardless of the fs type...
> Yes, you are right. They are setup to be check in the order
> I would want them mounted. But I don't see the benefit to being
> compliant with a checking mechanism for a file system that is
> actually needs fsck.
> It was long a *feature* of xfs, that xfs.fsck, was a noop.
> I don't see that making it fail in ways fsck does for a file
> system that *needs* fsck, is productive. Sure, it may be dotting i's
> and crossing t's, but in reality, is that a standard xfs should be
> living down to?
Of course, most of the attending audience is being bitten by such a
configuration failure, but to argue, that it is wrong behavior, if the init
code decides to stop booting, because some devices configured to mount on
boot failed to mount, is, hmm, incongruous..
By (current) definition, the init system has absolutely no business to
_weight_ the _severity_ of such a basic failure. Nowadays, there are enough
ways to delay the mount (noauto, autofs) for certain FS in order to avoid
such a failure - if that is what you want - but generally ignoring any fsck
failures, be them on journaling FS or not is not acceptable. And making xfs
special in the regard is even more incongruous.