xfs
[Top] [All Lists]

Re: [PATCH 23/22] xfs: add metadata CRC documentation

To: Brian Foster <bfoster@xxxxxxxxxx>
Subject: Re: [PATCH 23/22] xfs: add metadata CRC documentation
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Mon, 8 Apr 2013 09:08:34 +1000
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <515EB6E4.7060508@xxxxxxxxxx>
References: <1364965892-19623-1-git-send-email-david@xxxxxxxxxxxxx> <20130405070006.GJ12011@dastard> <515EB6E4.7060508@xxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Fri, Apr 05, 2013 at 07:35:00AM -0400, Brian Foster wrote:
> On 04/05/2013 03:00 AM, Dave Chinner wrote:
> > xfs: add metadata CRC documentation
> > 
> > From: Dave Chinner <dchinner@xxxxxxxxxx>
> > 
> > Add some documentation about the self describing metadata and the
> > code templates used to implement it.
> > +
> > +Runtime Validation
> > +------------------
> > +
> ...
> > +
> > +The first step in read verification is checking the magic number and 
> > determining
> > +whether CRC validating is necessary. If it is, the CRC32c is caluclated and
> 
> What do you mean by "determining whether CRC validating is necessary?"
> In other words, it's not always enabled but rather triggered by
> something else that elevates suspicion on the object?

It is triggered by either the magic number indicating the object has
CRC checking or (xfs_sb_version_hascrc(sb) == true) indicating the
filesystem has metadata CRC checking enabled.

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>