xfs
[Top] [All Lists]

Re: TAKE - fix last block mmap problems

To: Steve Lord <lord@xxxxxxx>
Subject: Re: TAKE - fix last block mmap problems
From: Keith Owens <kaos@xxxxxxx>
Date: Wed, 19 Jun 2002 12:14:57 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: Your message of "18 Jun 2002 09:35:58 EST." <1024410958.12631.18.camel@xxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
On 18 Jun 2002 09:35:58 -0500, 
Steve Lord <lord@xxxxxxx> wrote:
>This is the program to fix up the files left behind by this bug. It
>does a tree walk of a directory and mmaps files looking for candidates,
>if it finds a file with space in the last block beyond end of file
>which has non-zero data in it, it will zero the remainder of the
>block.

Due to a unrelated kernel (not XFS) bug, the program may or may not
change the timestamp on the files.  Updating an mmapped file without
doing an explicit write to the file is not guaranteed to change the
timestamp, files can be changed but appear unchanged.  This kernel bug
messes up rsync --newer, backups and any other programs that rely on
the timestamp.

Also 4096 should be getpagesize() to cater for IA64.


<Prev in Thread] Current Thread [Next in Thread>