xfs: add version 3 inode format with CRCs
authorChristoph Hellwig <hch@lst.de>
Wed, 3 Apr 2013 05:11:17 +0000 (16:11 +1100)
committerBen Myers <bpm@sgi.com>
Sun, 21 Apr 2013 20:03:33 +0000 (15:03 -0500)
commit93848a999cf9b9e4f4f77dba843a48c393f33c59
tree92c2fb4e741a8d70e70f9d31df308d1a30ecaef6
parent3fe58f30b4fc3f8a9084b035a02bc0c67bee8d00
xfs: add version 3 inode format with CRCs

Add a new inode version with a larger core.  The primary objective is
to allow for a crc of the inode, and location information (uuid and ino)
to verify it was written in the right place.  We also extend it by:

a creation time (for Samba);
a changecount (for NFSv4);
a flush sequence (in LSN format for recovery);
an additional inode flags field; and
some additional padding.

These additional fields are not implemented yet, but already laid
out in the structure.

[dchinner@redhat.com] Added LSN and flags field, some factoring and rework to
capture all the necessary information in the crc calculation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_buf_item.h
fs/xfs/xfs_dinode.h
fs/xfs/xfs_ialloc.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_trans_buf.c