[Stgt-devel] [Patch 4/4] bs_mmap add O_SYNC to open()

Robert Jennings rcj
Tue Oct 23 23:32:21 CEST 2007


Add the O_SYNC flag to the open() call.

Signed-off-by: rcj at linux.vnet.ibm.com

---
 usr/bs_mmap.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Index: tgt/usr/bs_mmap.c
===================================================================
--- tgt.orig/usr/bs_mmap.c	2007-10-23 11:14:56.000000000 -0500
+++ tgt/usr/bs_mmap.c	2007-10-23 15:52:58.000000000 -0500
@@ -229,7 +229,7 @@
 	INIT_LIST_HEAD(&info->finished_list);
 	INIT_LIST_HEAD(&info->pending_list);
 
-	*fd = backed_file_open(path, O_RDWR| O_LARGEFILE, size);
+	*fd = backed_file_open(path, O_RDWR | O_LARGEFILE | O_SYNC, size);
 	if (*fd < 0)
 		return *fd;
 



More information about the stgt mailing list