This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Define FALLOC_FL_INSERT_RANGE, FALLOC_FL_UNSHARE_RANGE in bits/fcntl-linux.h
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Tue, 13 Dec 2016 23:59:06 +0000
- Subject: Define FALLOC_FL_INSERT_RANGE, FALLOC_FL_UNSHARE_RANGE in bits/fcntl-linux.h
- Authentication-results: sourceware.org; auth=none
This patch adds the flags FALLOC_FL_INSERT_RANGE and
FALLOC_FL_UNSHARE_RANGE to bits/fcntl-linux.h.
FALLOC_FL_UNSHARE_RANGE is new in Linux 4.9; FALLOC_FL_INSERT_RANGE
was added in 4.1, but I missed it at that time.
Tested for x86_64 and x86.
2016-12-13 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
(FALLOC_FL_INSERT_RANGE): New macro.
[__USE_GNU] (FALLOC_FL_UNSHARE_RANGE): Likewise.
diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
index 7e5b0ae..0a30af2 100644
--- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
@@ -327,6 +327,9 @@ struct f_owner_ex
hole. */
# define FALLOC_FL_ZERO_RANGE 16 /* Convert a range of a
file to zeros. */
+# define FALLOC_FL_INSERT_RANGE 32 /* Insert a range in a file. */
+# define FALLOC_FL_UNSHARE_RANGE 64 /* Unshare shared blocks in
+ a file. */
/* File handle structure. */
--
Joseph S. Myers
joseph@codesourcery.com