fs change on read-only mount
Christoph Hellwig
hch at infradead.org
Thu Aug 13 08:14:07 CDT 2009
On Thu, Aug 13, 2009 at 02:37:30PM +0200, Bgs wrote:
>
> Greetings,
>
> I don't know xfs' superblock handling well enough, so I'm asking for
> advice here:
>
> Does xfs write anything on the disk when mounting read-only? Is it
> possible to use a partitions hash (or some well defined portion of the
> partition) for integrity checks?
It should not write anything to disk [1], but older versions did so due to
bugs. Doing a hash of a read-only filesystem should be fine.
> The partitions are used read-only and hash would be re-generated if any
> rw action was done (after remount ro or full reboot of course). Can this
> be done? I'm concerned about 'mount count' like writes...
There is no mount-count like write in XFS.
[1] the only exception is that log reocvery is performed when we attempt
a read-only mount with an unclean log, that is the box crashed while
writing the filesystems. To make sure you never do this always mark
the underlying device readonly, using blkdev --ro.
More information about the xfs
mailing list