xfs
[Top] [All Lists]

[PATCH] xfs_fsr causes mapcheck to trigger

To: linux-xfs@xxxxxxxxxxx
Subject: [PATCH] xfs_fsr causes mapcheck to trigger
From: Wessel Dankers <wsl@xxxxxxxxxxxx>
Date: Wed, 28 Aug 2002 11:57:51 +0200
Mail-followup-to: linux-xfs@xxxxxxxxxxx
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4i
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-----



<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] xfs_fsr causes mapcheck to trigger, Wessel Dankers <=