diff options
author | Pádraig Brady <P@draigBrady.com> | 2011-03-30 22:50:05 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-03-31 16:46:42 +0100 |
commit | f69876e558782eb770955aa0b1344a5a8262548b (patch) | |
tree | 57d7c29f644b72239a92e0108408955ae29de39f /src/extent-scan.h | |
parent | 17a7e4592727b44d0a5550d1340e354786109af7 (diff) | |
download | coreutils-f69876e558782eb770955aa0b1344a5a8262548b.tar.xz |
copy: with fiemap copy, only sync when needed
* src/extent-scan.h (struct extent_scan): Add the fm_flags member to
pass to the fiemap scan.
* src/extent-scan.c (extent_need_sync): A new function used to
detect Linux kernels before 2.6.38.
(extent_scan_init): Add FIEMAP_FLAG_SYNC when needed.
* tests/cp/sparse-fiemap: Adjust comment.
* NEWS: Mention the change in behavior.
Indirectly suggested by Mike Frysinger
Diffstat (limited to 'src/extent-scan.h')
-rw-r--r-- | src/extent-scan.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/extent-scan.h b/src/extent-scan.h index 4724b2575..872851507 100644 --- a/src/extent-scan.h +++ b/src/extent-scan.h @@ -41,6 +41,9 @@ struct extent_scan /* Next scan start offset. */ off_t scan_start; + /* Flags to use for scan. */ + uint32_t fm_flags; + /* How many extent info returned for a scan. */ uint32_t ei_count; |