GNU bug report logs - #6131
[PATCH]: fiemap support for efficient sparse file copy

Previous Next

Package: coreutils;

Reported by: "jeff.liu" <jeff.liu <at> oracle.com>

Date: Fri, 7 May 2010 14:16:02 UTC

Severity: normal

Tags: patch

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "jeff.liu" <jeff.liu <at> oracle.com>
To: Paul Eggert <eggert <at> CS.UCLA.EDU>
Cc: Sunil Mushran <sunil.mushran <at> oracle.com>, bug-coreutils <at> gnu.org, Jim Meyering <jim <at> meyering.net>, Joel Becker <Joel.Becker <at> oracle.com>, Tao Ma <tao.ma <at> oracle.com>, Chris Mason <chris.mason <at> oracle.com>
Subject: bug#6131: [PATCH]: fiemap support for efficient sparse file copy
Date: Wed, 16 Jun 2010 15:22:08 +0800
Tao Ma wrote:
> Hi Paul,
> 
> On 06/16/2010 05:11 AM, Paul Eggert wrote:
>> On 06/10/2010 05:35 PM, Tao Ma wrote:
>>
>>> there is a flag FIEMAP_EXTENT_DELALLOC in fiemap ...
>>> with dd if=/dev/zero of=/mnt/ext4/a bs=1M count=1 seek=1
>>> the ext4 can't return a valid fiemap extent.
>>
>> Hmm, this sounds like a fairly serious bug, in that it would prevent this
>> part of cp from working.  What does the fiemap ioctl return in this
>> buggy case?
In this case, fiemap ioctl returns successfully, but 'fm_mapped_extents' will set to ZERO to
indicate there is no extents allocated for the file.
>> Is there some way that cp can detect the bug, and report it to the user,
>> or work around it?
work around is add FIEMAP_FLAG_SYNC to fiemap ioctl at the moment.

Thanks,
-Jeff
Or should we just assume that the bug will get fixed
>> and that cp shouldn't worry about it?
> I have prompted this to the linux ext4
> community(http://lkml.org/lkml/2010/6/10/412), they are working on it
> now I guess.
> 
> Regards,
> Tao


-- 
With Windows 7, Microsoft is asserting legal control over your computer and is using this power to
abuse computer users.




This bug report was last modified 14 years and 119 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.