Skip to contentSkip to conversation

Allow changing O_SYNC with fcntl().

PATCH New Timo Sirainen 1 participant 1 message Nov 22, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Allow changing O_SYNC with fcntl().

Is there a reason why this isn't allowed now?

---
 fs/fcntl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/fcntl.c +1 -1
index 8685263..fc0c92e 100644
@@ -203,7 +203,7 @@ asmlinkage long sys_dup(unsigned int fildes)
 	return ret;
 }
 
-#define SETFL_MASK (O_APPEND | O_NONBLOCK | O_NDELAY | FASYNC | O_DIRECT | O_NOATIME)
+#define SETFL_MASK (O_APPEND | O_NONBLOCK | O_NDELAY | FASYNC | O_DIRECT | O_NOATIME | O_SYNC)
 
 static int setfl(int fd, struct file * filp, unsigned long arg)
 {