diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-12 14:26:13 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-12 14:26:13 +0200 |
commit | 1c2e745ff2bd80b14fdf96c28b07ca34e2c16537 (patch) | |
tree | 8d3e1729e7e2d66f8fa7c5f7283fb0968df84faa /inc | |
parent | 195a029b42d34d162053d1096ae093fd3d7efb0c (diff) | |
download | abrt-1c2e745ff2bd80b14fdf96c28b07ca34e2c16537.tar.gz abrt-1c2e745ff2bd80b14fdf96c28b07ca34e2c16537.tar.xz abrt-1c2e745ff2bd80b14fdf96c28b07ca34e2c16537.zip |
fix bug 588945 - sparse core files performance hit
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'inc')
-rw-r--r-- | inc/abrtlib.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/inc/abrtlib.h b/inc/abrtlib.h index 7cafc99c..6303f759 100644 --- a/inc/abrtlib.h +++ b/inc/abrtlib.h @@ -119,8 +119,11 @@ extern ssize_t safe_write(int fd, const void *buf, size_t count); extern ssize_t full_write(int fd, const void *buf, size_t count); /* copyfd_XX print read/write errors and return -1 if they occur */ -off_t copyfd_eof(int src_fd, int dst_fd); -off_t copyfd_size(int src_fd, int dst_fd, off_t size); +enum { + COPYFD_SPARSE = 1 << 0, +}; +off_t copyfd_eof(int src_fd, int dst_fd, int flags = 0); +off_t copyfd_size(int src_fd, int dst_fd, off_t size, int flags = 0); void copyfd_exact_size(int src_fd, int dst_fd, off_t size); off_t copy_file(const char *src_name, const char *dst_name, int mode); |