Skip to content
Snippets Groups Projects
Commit 3e69f841 authored by Andreas Dilger's avatar Andreas Dilger
Browse files

Branch HEAD

Change FMODE_EXEC declaration to match upstream kernel.
Don't conflict with FMODE_LSEEK in RHEL4 case.
b=11248
parent 3a39338c
No related branches found
No related tags found
No related merge requests found
...@@ -611,14 +611,18 @@ ...@@ -611,14 +611,18 @@
int nr_unused; int nr_unused;
--- linux-2.6.9.orig/include/linux/fs.h --- linux-2.6.9.orig/include/linux/fs.h
+++ linux-2.6.9/include/linux/fs.h +++ linux-2.6.9/include/linux/fs.h
@@ -75,6 +75,7 @@ extern int leases_enable, dir_notify_ena @@ -81,6 +81,11 @@ extern int leases_enable, dir_notify_ena
#define FMODE_PREAD 8
#define FMODE_READ 1 #define FMODE_PWRITE FMODE_PREAD /* These go hand in hand */
#define FMODE_WRITE 2
+#define FMODE_EXEC 4 +/* File is being opened for execution. Primary users of this flag are
+ distributed filesystems that can use it to achieve correct ETXTBUSY
/* Internal kernel extensions */ + behavior for cross-node execution/opening_for_writing of files */
#define FMODE_LSEEK 4 +#define FMODE_EXEC 16
+
#define RW_MASK 1
#define RWA_MASK 2
#define READ 0
@@ -259,6 +260,8 @@ typedef void (dio_iodone_t)(struct inode @@ -259,6 +260,8 @@ typedef void (dio_iodone_t)(struct inode
#define ATTR_ATTR_FLAG 1024 #define ATTR_ATTR_FLAG 1024
#define ATTR_KILL_SUID 2048 #define ATTR_KILL_SUID 2048
......
...@@ -644,14 +644,18 @@ ...@@ -644,14 +644,18 @@
int nr_unused; int nr_unused;
--- linux-2.6.16.21-0.8.orig/include/linux/fs.h --- linux-2.6.16.21-0.8.orig/include/linux/fs.h
+++ linux-2.6.16.21-0.8/include/linux/fs.h +++ linux-2.6.16.21-0.8/include/linux/fs.h
@@ -59,6 +59,7 @@ extern int dir_notify_enable; @@ -81,6 +81,11 @@ extern int leases_enable, dir_notify_ena
#define FMODE_PREAD 8
#define FMODE_READ 1 #define FMODE_PWRITE FMODE_PREAD /* These go hand in hand */
#define FMODE_WRITE 2
+#define FMODE_EXEC 16 +/* File is being opened for execution. Primary users of this flag are
+ distributed filesystems that can use it to achieve correct ETXTBUSY
/* Internal kernel extensions */ + behavior for cross-node execution/opening_for_writing of files */
#define FMODE_LSEEK 4 +#define FMODE_EXEC 16
+
#define RW_MASK 1
#define RWA_MASK 2
#define READ 0
@@ -265,6 +266,8 @@ typedef void (dio_iodone_t)(struct kiocb @@ -265,6 +266,8 @@ typedef void (dio_iodone_t)(struct kiocb
#define ATTR_KILL_SUID 2048 #define ATTR_KILL_SUID 2048
#define ATTR_KILL_SGID 4096 #define ATTR_KILL_SGID 4096
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment