diff options
author | Jim Meyering <meyering@redhat.com> | 2011-04-02 19:59:30 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-04-03 12:16:27 +0200 |
commit | 1c3654cb1fb0d8f3c422c766028d0783a40f4a42 (patch) | |
tree | 64c43ce79969c0f261420ceb98e98fc934ba312d /src/extent-scan.c | |
parent | 45b332f7ab74c766d227a75dd2d48705c3eb176b (diff) | |
download | coreutils-1c3654cb1fb0d8f3c422c766028d0783a40f4a42.tar.xz |
copy: require fiemap sync also for 2.6.38 kernels
* src/extent-scan.c (extent_need_sync): Require sync also for 2.6.38.
Without this, part of the cp/fiemap-empty test would fail both on
F15-to-be (2.6.38.1-6.fc15.x86_64) and rawhide. For details, see
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22190
Diffstat (limited to 'src/extent-scan.c')
-rw-r--r-- | src/extent-scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extent-scan.c b/src/extent-scan.c index c0a5de6c2..d84746c56 100644 --- a/src/extent-scan.c +++ b/src/extent-scan.c @@ -31,7 +31,7 @@ # include "fiemap.h" #endif -/* Work around Linux kernel issues on BTRFS and EXT4 before 2.6.38. +/* Work around Linux kernel issues on BTRFS and EXT4 before 2.6.39. FIXME: remove in 2013, or whenever we're pretty confident that the offending, unpatched kernels are no longer in use. */ static bool @@ -50,7 +50,7 @@ extent_need_sync (void) unsigned long val; if (xstrtoul (name.release + 4, NULL, 10, &val, NULL) == LONGINT_OK) { - if (val < 38) + if (val < 39) need_sync = 1; } } |