From: Matthias Koenig <mkoenig@suse.de>
To: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Cc: "Theodore Ts'o" <tytso@mit.edu>,
ludwig.nussel@suse.de, linux-ext4@vger.kernel.org
Subject: Re: [PATCH] [RFC] New fsck option to ignore device-mapper crypto devices
Date: Wed, 12 Mar 2008 16:59:03 +0100 [thread overview]
Message-ID: <n7xr6egkk6w.fsf@sor.suse.de> (raw)
In-Reply-To: 1204903187.7975.10.camel@norville.austin.ibm.com
Dave Kleikamp <shaggy@linux.vnet.ibm.com> writes:
> I don't understand the question. If the fs_passno field is zero, fsck
> isn't even going to try to check the filesystem, so having no device is
> no problem.
Agreed, in case of zero there is no problem.
>> How should we specify that we want these filesystems to be checked or not
>> at a later time in the boot process after the crypto devices have been
>> set up?
>
> This is why I asked if fsck was being run with the -A flag in step d.
> If it's not, then I'm not clear on why fs_passno has anything to do with
> it. Is there some script that looks at this field in /etc/fstab for
> step d?
Right, fsck -A is *not* called in step d and the fs_passno is in
principle unrelated to this.
There is a boot script for setting up, fscking and mounting the
crypto devices. As the crypto fileystems are supposed to be defined in
/etc/fstab looking at fs_passno by the script to find out if the
filesystem should be checked or not seems reasonable to me.
> If that's the case, then I suggest a more general solution. Either some
> special value for fs_passno that defers the fsck for a later pass, or a
> simplified version of your proposed patch without the crypto-specific
> part.
1. Do we agree that fstab fs_passno could be used besides fsck -A by a
separate script to decide if a filesystem (that could not be checked
in the fsck -A phase) should be checked?
2. If yes, what would be a proper way?
a) special value for fs_passno?
I don't know if this is reasonable, we already have a "nofail"
mount option. We can already call fsck with something like
(assuming crypto devices being tagged with the nofail option)
fsck -A -t noopts=nofail
So giving either a special fs_passno value or an additional option
seems to be the same: one has to put an additional value into fstab.
b) a general "ignore if device does not exist" option?
Still I am not sure if we really *generally* want to ignore
devices which are not available at fsck -A phase. The behaviour
of fsck to fail in this case is probably on purpose?
Note, the whole discussion applies to crypto filesystems living in a
container file. Encrypted block devices can be set up earlier so they
could be checked in the normal fsck -A stage (Suse currently does not
do this, but I am planning to change this).
So, since the issue will remain only for file containers, it might be not
worth adding a new option for fsck. But it would be nice have the
fsck behaviour on non-existent device failure clarified.
Thanks,
Matthias
next prev parent reply other threads:[~2008-03-12 15:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-06 13:41 [PATCH] [RFC] New fsck option to ignore device-mapper crypto devices Matthias Koenig
2008-03-06 14:32 ` Dave Kleikamp
2008-03-06 17:04 ` Matthias Koenig
2008-03-06 17:23 ` Dave Kleikamp
2008-03-06 17:42 ` Theodore Tso
2008-03-07 14:20 ` Matthias Koenig
2008-03-07 15:19 ` Dave Kleikamp
2008-03-12 15:59 ` Matthias Koenig [this message]
2008-03-12 20:02 ` Theodore Tso
2008-03-12 20:14 ` Theodore Tso
2008-03-13 5:37 ` Dave Kleikamp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=n7xr6egkk6w.fsf@sor.suse.de \
--to=mkoenig@suse.de \
--cc=linux-ext4@vger.kernel.org \
--cc=ludwig.nussel@suse.de \
--cc=shaggy@linux.vnet.ibm.com \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox