diff options
author | Jie Liu <jeff.liu@oracle.com> | 2010-06-11 16:29:02 +0800 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-01-30 20:44:11 +0100 |
commit | d232c1cc20383c8e43c9f318a34140e3bd2026af (patch) | |
tree | 426438924415235043b576796be42fc8eb89696c /src/copy.c | |
parent | 6c81b97a58cacdb337e1957312196c86647e25f9 (diff) | |
download | coreutils-d232c1cc20383c8e43c9f318a34140e3bd2026af.tar.xz |
copy.c: add FIEMAP_FLAG_SYNC to fiemap ioctl
* src/copy.c (fiemap_copy): Force kernel to sync the source
file before mapping.
Diffstat (limited to 'src/copy.c')
-rw-r--r-- | src/copy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/copy.c b/src/copy.c index 1d32913eb..ead15b82f 100644 --- a/src/copy.c +++ b/src/copy.c @@ -190,6 +190,7 @@ fiemap_copy (int src_fd, int dest_fd, size_t buf_size, do { fiemap->fm_length = FIEMAP_MAX_OFFSET; + fiemap->fm_flags = FIEMAP_FLAG_SYNC; fiemap->fm_extent_count = count; /* When ioctl(2) fails, fall back to the normal copy only if it |