xfsdump v3.1.1-rc2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAABAgAGBQJQt95YAAoJENaLyazVq6ZOJ4MQAMbV1ckNnJ3sSfDWWILNcxqT
NkfHGnfTihre3nxnFagfh8JuTuI793d/arCwmRyfpwTnyvoekcoYiIZfpOiqVED3
r6GQ1PMj+W3ENnHO1nRGbNVr7Yuv11Z0sGis9KJmB78EmIUx5PNeKyB0bm7/A1/h
Jixu9Jj799wviAeyHyzgBR+c9lfpphLDuWw14iK69yX3T3hOXln30k4Dwmf4x4rF
d4PiFN21jxfai/4+k8DhKfvFVRUpmPkpHEMp2n6w77v3+AIgmLOTunfmsvAisTOE
qitZzzjlppDMMgypHrpdppmuFO+Zzms8aBC+N5I/s4oRArnRVq3N6jKAyXeV+GmH
uaClLxn3cLF8NoR381CPWsrgADHH3YKiLYTCtZ4Ouz0W1D0HUykAwPmp8PBPDEej
wWuYzcY2n/U1N0/8PwWH0uBjxtNHp/LqvtwdGtJrqsoyY2M9TazMQpRB1wSKkFwM
fpyVKFxbkC+GsrjPQfsKAekpUnHH2hQQXHkRW4Y08UJxnckHW9NBR82FC4xABpjV
ca7ZTBjh9jWPop5F4xXkwfhrWgS9xxqIRxT5gBegbi98ypkW44/TviCrzkb36RSK
gjaHHempZoNfBQpaaQpLooo3mg7x2lpULtlv4h3nKHqc93YrNFVboCYdFcLo3h+6
+i4u/Yigm4ug4YQHvGcO
=DsJw
-----END PGP SIGNATURE-----
xfsdump: fill in bs_forkoff

Upstream, the structure containing bs_forkoff is actually zeroed
prior to these functions, but when pulling the patch back to an
older xfsdump, we got checksum errors due to an uninitialized
bs_forkoff not matching in dump vs. restore.

So even though forkoff won't be explicitly restored from
a dump, do explicitly set it in these routines to keep checksums
happy.

This fixes 'bad header checksum' errors in xfsrestore, which were
introduced by commit 1e309da7.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
2 files changed