Re: [PATCH] [RFC] New fsck option to ignore device-mapper crypto devices

Theodore Tso
2008-03-12T20:14:59Z

On Wed, Mar 12, 2008 at 04:02:36PM -0400, Theodore Tso wrote:
> So here's another way you could do things that doesn't require any
> patches to fsck at all. Just add "comment=crypto" into the option
> field of /etc/fstab, like this.
>
> /dev/mapper/crypto-frobnitz /crypto1 ext3 comment=crypto 1 1
>
> Then you can skip filesystems that have the comment=crypto in the
> options field via:
>
> fsck -AR -t opts=!comment=crypto

Oh by the way, in case you haven't tried this, the best way to test
exactly what fsck will do with a set of arguments is by using the -NV
options, i.e.:

fsck -ARNV -t opts=!comment=crypto

- Ted