summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-17 02:36:23 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-19 20:24:09 +0100
commitff6a74609b7c925834da1373d3adb9642ca51422 (patch)
tree23fc620efd4a35c0d2d138a1d887d6c8465253ff /src/shared/util.h
parent47bc4fd86d1119945be3d0217f3795c901b7ffff (diff)
import-raw: when downloading raw images, generate sparse files if we can
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index 8a3e95a17a..2e662c9d2d 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -1062,3 +1062,5 @@ void release_lock_file(LockFile *f);
#define LOCK_FILE_INIT { .fd = -1, .path = NULL }
#define RLIMIT_MAKE_CONST(lim) ((struct rlimit) { lim, lim })
+
+ssize_t sparse_write(int fd, const void *p, size_t sz, size_t run_length);