| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 09/25] xfs: verify inode buffers as they are read from disk |
| From: | Phil White <pwhite@xxxxxxx> |
| Date: | Mon, 29 Oct 2012 18:06:42 -0700 |
| Cc: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1351146854-19343-10-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1351146854-19343-1-git-send-email-david@xxxxxxxxxxxxx> <1351146854-19343-10-git-send-email-david@xxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Thu, Oct 25, 2012 at 05:33:58PM +1100, Dave Chinner wrote: > From: Dave Chinner <dchinner@xxxxxxxxxx> > > Add an inode buffer verify callback function and pass it into the > buffer read functions. Inodes are special in that the verbose checks > will be done when reading the inode, but we still need to sanity > check the buffer when that is first read. Always verify the magic > numbers in all inodes in the buffer, rather than jus ton debug > kernels. > > Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx> > --- > fs/xfs/xfs_inode.c | 100 > +++++++++++++++++++++++++++------------------------- > 1 file changed, 51 insertions(+), 49 deletions(-) Hunky dory as it's essentially just lifting the same code into a function. I wonder a bit if all those checks are strictly necessary vs. simply being belt-and-suspenders safe, but that thought's not related to your patch. Reviewed-by: Phil White <pwhite@xxxxxxx> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 08/25] xfs: verify AGFL blocks as they are read from disk, Phil White |
|---|---|
| Next by Date: | Re: [PATCH 07/25] xfs: verify AGI blocks as they are read from disk, Phil White |
| Previous by Thread: | [PATCH 09/25] xfs: verify inode buffers as they are read from disk, Dave Chinner |
| Next by Thread: | [PATCH 05/25] xfs: verify superblocks as they are read from disk, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |