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: Jim Meyering <jim <at> meyering.net>
To: Eric Blake <eblake <at> redhat.com>
Cc: Sunil Mushran <sunil.mushran <at> oracle.com>, bug-coreutils <at> gnu.org, Joel Becker <Joel.Becker <at> oracle.com>, "jeff.liu" <jeff.liu <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: Tue, 08 Jun 2010 22:57:51 +0200
Eric Blake wrote:
>> +++ b/tests/cp/sparse-fiemap
>> @@ -0,0 +1,56 @@
>> +#!/bin/sh
>> +# Test cp --sparse=always through fiemap copy
>> +
>> +# Copyright (C) 2006-2010 Free Software Foundation, Inc.
>
> How much of this content comes from other files from 2006, vs. new
> content needing only 2010?

Good point.
This started as a largely copied test, but now it's mostly new.
I'm taking this opportunity to make it use init.sh, too.
I'll squash this.  Think of init.sh as the next-generation test-lib.sh.

Thanks.

From c7f9d3d0ff23d72cadd435ceef8d44b7eab7f072 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering <at> redhat.com>
Date: Tue, 8 Jun 2010 22:53:51 +0200
Subject: [PATCH] test-use init.sh

---
 tests/cp/sparse-fiemap |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/cp/sparse-fiemap b/tests/cp/sparse-fiemap
index 3e7c11f..dc0cf60 100755
--- a/tests/cp/sparse-fiemap
+++ b/tests/cp/sparse-fiemap
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test cp --sparse=always through fiemap copy

-# Copyright (C) 2006-2010 Free Software Foundation, Inc.
+# Copyright (C) 2010 Free Software Foundation, Inc.

 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi

-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src

 if df -T -t btrfs -t xfs -t ext4 -t ocfs2 . ; then
   : # Current dir is on a partition with working extents.  Good!
--
1.7.1.501.g23b46




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.