Whamcloud - gitweb
LU-12275 sec: restrict fallocate on encrypted files
[fs/lustre-release.git] / lustre / include / lustre_compat.h
index 5defcfd..a39b617 100644 (file)
@@ -564,4 +564,16 @@ static inline int ll_vfs_removexattr(struct dentry *dentry, struct inode *inode,
 #endif
 }
 
+#ifndef FALLOC_FL_COLLAPSE_RANGE
+#define FALLOC_FL_COLLAPSE_RANGE 0x08 /* remove a range of a file */
+#endif
+
+#ifndef FALLOC_FL_ZERO_RANGE
+#define FALLOC_FL_ZERO_RANGE 0x10 /* convert range to zeros */
+#endif
+
+#ifndef FALLOC_FL_INSERT_RANGE
+#define FALLOC_FL_INSERT_RANGE 0x20 /* insert space within file */
+#endif
+
 #endif /* _LUSTRE_COMPAT_H */