mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
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
This commit is contained in:
1 parent
45b332f7ab
commit
1c3654cb1f
1 file changed
+2
-2
+2
-2
@@ -31,7 +31,7 @@
|
|||||||
# include "fiemap.h"
|
# include "fiemap.h"
|
||||||
#endif
|
#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
|
FIXME: remove in 2013, or whenever we're pretty confident
|
||||||
that the offending, unpatched kernels are no longer in use. */
|
that the offending, unpatched kernels are no longer in use. */
|
||||||
static bool
|
static bool
|
||||||
@@ -50,7 +50,7 @@ extent_need_sync (void)
|
|||||||
unsigned long val;
|
unsigned long val;
|
||||||
if (xstrtoul (name.release + 4, NULL, 10, &val, NULL) == LONGINT_OK)
|
if (xstrtoul (name.release + 4, NULL, 10, &val, NULL) == LONGINT_OK)
|
||||||
{
|
{
|
||||||
if (val < 38)
|
if (val < 39)
|
||||||
need_sync = 1;
|
need_sync = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user