This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Define FALLOC_FL_INSERT_RANGE, FALLOC_FL_UNSHARE_RANGE in bits/fcntl-linux.h


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]