3.1.1 release
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAABAgAGBQJQyO9PAAoJENaLyazVq6ZOcqUP/AuyKRz6LAucj7uprKozY0Yz
bZzbA6zNkxCR+uHz31ii62I+MMABHI/v/63VBvrWuG8iNCBAfO7LuUpXTzM5YRLB
qyj9Wwryrksc7VaasgyD7i5S6y5GCY3FT5CJ+q34iuYCMqIBwdkWUNOFpMgjh0at
h7JuN9GB8el07Qj6zAPtFDaR+xwM4vzQZFxTbyEvUktdh2md/Gh3dflASgqa8c/h
as9HkurRciM/rbGp1uRuJvMyCiGCnGer2zrlsPTkHno1d2b4Uw8Tx8Y82lH8YAt3
AiXs0fAzChlRlu2ImFg9sAXi8LGVdWrKYkyNl0rZlN0B6PSowfkUZ/RLtVVY/I8X
OUlEl2uf1PVHVoZP0IotGgRFmJvt5fRPrTVTG6tKKDWzJevL6f16HkECqjodfcjo
H1xKbpKeodVJXb5X/cGw38H+Al9ae0Q7VmZwa5mNkwfrm5YyT/+TT5Qvs1hHz03x
MUv4ToITkMaf28vnbnISAcWEEXzueFvsSgthdz3YBqcLXrs9Qg9Ex38wmSj6N1QK
ZusEdLMbpwbBMi1M4WPC4f3/ciJkpCvuJFSKsVecKpeS7TwJVPvTuxI6zUNC6Tkb
okWZt4L/mbU91qW+XGU+T1wdGk5t962Apxla5LsNiEEeoYlIAHvDnsj/ood6uzJT
/MWbgDQOrkhS9ZbyLELx
=rprG
-----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