oi!
I noticed that mapcheck gives errors after running xfs_fsr. Below is a
small patch to alleviate this problem. However, I would personally feel
that the problem is not in xfs_fsr but inside the truncate() system call.
The truncate() call should take care of cleaning the last block, IMHO.
Thanks,
--
Wessel Dankers <wsl@xxxxxxxxxxxx>
--- xfsdump/fsr/xfs_fsr.c 2002-06-06 00:12:33.000000000 +0200
+++ xfsdump/fsr/xfs_fsr.c 2002-08-28 11:23:39.000000000 +0200
@@ -1156,6 +1156,7 @@
*/
if (ct % dio_min != 0) {
wc = ct + dio_min - (ct % dio_min);
+ bzero(fbuf + ct, wc - ct);
} else {
wc = ct;
}
-- Attached file included as plaintext by Ecartis --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9bJ6fwSIMlSIEfyYRAhalAJ4hMhtTOfnT715W8a/oYbS0sJ+CagCaAv2i
dnPTq0zDsij9+vD4FmEJ//4=
=u5pa
-----END PGP SIGNATURE-----
|