Skip to contentSkip to conversation

xfs: current queue for 3.8

PATCH In review Dave Chinner 7 participants 91 messages Nov 12, 2012 – Nov 26, 2012 XFS filesystem Page 2 of 2

lore
Share & tools
lore
Reviewed-by on v1 32/32
#82 lore raw

Re: [PATCH 32/32] xfs: add CRC checks to the log

In reply to Dave Chinner
Quoted 25 lines · Dave Chinner

From: Christoph Hellwig<[email protected]>

Implement CRCs for the log buffers. We re-use a field in struct xlog_rec_header that was used for a weak checksum of the log buffer payload in debug builds before.

The new checksumming uses the crc32c checksum we will use elsewhere in XFS, and also protects the record header and addition cycle data.

Due to this there are some interesting changes in xlog_sync, as we need to do the cycle wrapping for the split buffer case much earlier, as we would touch the buffer after generating the checksum otherwise.

The CRC calculation is always enabled, even for non-CRC filesystems, as adding this CRC does not change the log format. On non-CRC filesystems, only issue an alert if a CRC mismatch is found and allow recovery to continue - this will act as an indicator that log recovery problems are a result of log corruption. On CRC enabled filesystems, however, log recovery will fail.

Note that existing debug kernels will write a simple checksum value to the log, so the first time this is run on a filesystem taht was last used on a debug kernel it will through CRC mismatch warning errors. These can be ignored.

Quoted 7 lines

Initially based on a patch from Dave Chinner, then modified significantly by Christoph Hellwig. Modified again by Dave Chinner to get to this version.

---

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#84 lore raw
Quoted 5 lines · Ben Myers
Quoted 1 line · Dave Chinner

This is my current patch queue for the 3.8 merge window.

Patches 1, and 6-8 of this series have been pushed to
git://oss.sgi.com/xfs/xfs.git, master and for-next branches.

I've been rather busy the last couple of days with other stuff, I'll get the updates to the remaining patches out this evening after a test run. I'll just reply to the patches with a V2 version of the patches that I've got fixes for....

Cheers,

Dave.

Signature · 7 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#85 lore raw
Quoted 11 lines · Dave Chinner
Quoted 5 lines · Ben Myers
Quoted 1 line · Dave Chinner

This is my current patch queue for the 3.8 merge window.

Patches 1, and 6-8 of this series have been pushed to
git://oss.sgi.com/xfs/xfs.git, master and for-next branches.

I've been rather busy the last couple of days with other stuff, I'll get the updates to the remaining patches out this evening after a test run. I'll just reply to the patches with a V2 version of the patches that I've got fixes for....

Thanks Dave, that's perfect. I'll pull these in today.

Regards,
Ben

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#87 lore raw

Hi Dave,

Quoted 5 lines · Ben Myers
Quoted 1 line · Dave Chinner

This is my current patch queue for the 3.8 merge window.

Patches 2-5 and 2.5 of this series are pushed to git://oss.sgi.com/xfs/xfs.git,
master and for-next branches.

I tried to pull in the rest of your series today, but ran into a conflict on patch 27. It's probably a PEBKAC. Will try again tomorrow.

Regards,
Ben

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#88 lore raw
Quoted 11 lines · Ben Myers

Hi Dave,

Quoted 5 lines · Ben Myers
Quoted 1 line · Dave Chinner

This is my current patch queue for the 3.8 merge window.

Patches 2-5 and 2.5 of this series are pushed to git://oss.sgi.com/xfs/xfs.git,
master and for-next branches.

I tried to pull in the rest of your series today, but ran into a conflict on patch 27. It's probably a PEBKAC. Will try again tomorrow.

I reposted my current version just in case.

Cheers,

Dave.

Signature · 7 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#89 lore raw

Hi Dave,

Quoted 7 lines · Dave Chinner
Quoted 6 lines · Ben Myers

Hi Dave,

Quoted 3 lines · Ben Myers
Quoted 1 line · Dave Chinner

This is my current patch queue for the 3.8 merge window.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Patches 2-5 and 2.5 of this series are pushed to git://oss.sgi.com/xfs/xfs.git,
master and for-next branches.

I tried to pull in the rest of your series today, but ran into a conflict on patch 27. It's probably a PEBKAC. Will try again tomorrow.

I reposted my current version just in case.

Thanks much. It came out fine the second time around. I pushed patches 9 through 30 of this series to the master and for-next branches on oss.

A pull request for 3.7 is also on my radar.

Regards,
Ben

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs