projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c81b97
)
copy.c: add FIEMAP_FLAG_SYNC to fiemap ioctl
author
Jie Liu
<jeff.liu@oracle.com>
Fri, 11 Jun 2010 08:29:02 +0000
(16:29 +0800)
committer
Jim Meyering
<meyering@redhat.com>
Sun, 30 Jan 2011 19:44:11 +0000
(20:44 +0100)
* src/copy.c (fiemap_copy): Force kernel to sync the source
file before mapping.
src/copy.c
patch
|
blob
|
history
diff --git
a/src/copy.c
b/src/copy.c
index
1d32913
..
ead15b8
100644
(file)
--- 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