[patch 6/9] reiserfsprogs: mkfs should use O_EXCL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 This patch forces reiserfs_create to open the device exclusively.

Signed-off-by: Jeff Mahoney <jeffm@xxxxxxxx>
---
 reiserfscore/reiserfslib.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/reiserfscore/reiserfslib.c	2008-01-24 13:39:03.000000000 -0500
+++ b/reiserfscore/reiserfslib.c	2008-01-24 13:39:04.000000000 -0500
@@ -206,7 +206,7 @@ reiserfs_filsys_t * reiserfs_create (cha
 	return 0;
     }
 
-    fs->fs_dev = open (filename, O_RDWR 
+    fs->fs_dev = open (filename, O_RDWR | O_EXCL
 #if defined(O_LARGEFILE)
 		       | O_LARGEFILE
 #endif


-
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux File System Development]     [Linux BTRFS]     [Linux NFS]     [Linux Filesystems]     [Ext4 Filesystem]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Resources]

  Powered by Linux