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


Message #254 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> CS.UCLA.EDU>
To: "jeff.liu" <jeff.liu <at> oracle.com>
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>,
	Chris Mason <chris.mason <at> oracle.com>,
	Pádraig Brady <P <at> draigBrady.com>,
	Tao Ma <tao.ma <at> oracle.com>
Subject: Re: bug#6131: [PATCH]: fiemap support for efficient sparse file copy
Date: Fri, 16 Jul 2010 08:53:27 -0700
On 07/16/10 07:49, jeff.liu wrote:

> For now, I am inclined to separate efficient read through fiemap
> and improve the write and allocation stuff via fallocate() or other ways later.

I haven't had time to look at it carefully, but here's a very brief
review.  The code you sent, like what's in the fiemap branch, has
a separate version of a chunk of copy.c that does both reading
and writing and optimizes both reading and writing by invoking the fiemap ioctls
at strategic locations.  Instead, it would be better to have
a module that separates out the efficient-read stuff by telling
copy.c where the next significant input extent is, and then modify copy.c
to use that module.  On hosts that do not support fiemap, the module
would simply report the entire input file as that file's only extent.

Surely such an approach would be more modular, and would result in
less duplication of code.  I can write something along those lines
if there's interest and if nobody else wants to take a crack at it.




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.