diff options
author | Jie Liu <jeff.liu@oracle.com> | 2010-05-13 22:09:30 +0800 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-01-30 20:44:10 +0100 |
commit | dff2b95e4fb22f3e6f3360da0774c784d2f50ff9 (patch) | |
tree | 0df1f00b386be479f508a947a5159c57065b390e /tests/cp/sparse-fiemap | |
parent | 38cdb01a32ba386a42c370be8371a8bf884eacce (diff) | |
download | coreutils-dff2b95e4fb22f3e6f3360da0774c784d2f50ff9.tar.xz |
cp: copy sparse files efficiently using the FIEMAP ioctl
* src/fiemap.h: Add fiemap.h for fiemap ioctl(2) support. Copied
from linux's include/linux/fiemap.h, with minor formatting changes.
* src/copy.c (copy_reg): Now, when `cp' is invoked with --sparse=[WHEN],
we will try to do FIEMAP-copy if the underlying file system
supports it, and fall back to a normal copy if it fails.
Diffstat (limited to 'tests/cp/sparse-fiemap')
0 files changed, 0 insertions, 0 deletions