Define flags for fallocate
authorAndreas Schwab <schwab@suse.de>
Wed, 9 Jan 2013 14:32:52 +0000 (15:32 +0100)
committerAndreas Schwab <schwab@suse.de>
Thu, 10 Jan 2013 08:59:57 +0000 (09:59 +0100)
ChangeLog
NEWS
sysdeps/unix/sysv/linux/bits/fcntl-linux.h

index 579b5e28c1d8ed5ef8914c32b374bb13469717df..ec80b446b174a2d1fb102963b0cf739156c15eb0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-01-10  Andreas Schwab  <schwab@suse.de>
+
+       [BZ #14964]
+       * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
+       (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
+
 2013-01-09  David S. Miller  <davem@davemloft.net>
 
        [BZ# 15003]
diff --git a/NEWS b/NEWS
index 07acc4f86a985dfd3b52e205b803f222b0311647..430c5d9d1ef197b34192233fd0eedec1a8b81a75 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,7 +9,7 @@ Version 2.18
 
 * The following bugs are resolved with this release:
 
-  13951, 14317, 14981, 14982, 14985, 14994, 14996, 15003.
+  13951, 14317, 14964, 14981, 14982, 14985, 14994, 14996, 15003.
 
 \f
 Version 2.17
index a8bb09075a998c4f121465ba08430e6f09b8758f..b5929bd2923bf88f11ce0c6af335754a6c54e238 100644 (file)
@@ -296,6 +296,13 @@ struct f_owner_ex
 # define SPLICE_F_GIFT         8       /* Pages passed in are a gift.  */
 
 
+/* Flags for fallocate.  */
+# define FALLOC_FL_KEEP_SIZE           1 /* Don't extend size of file
+                                            even if offset + len is
+                                            greater than file size.  */
+# define FALLOC_FL_PUNCH_HOLE          2 /* Create a hole in the file.  */
+
+
 /* File handle structure.  */
 struct file_handle
 {