Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mmp: don't use O_RDWR in ext2fs_mmp_read
[tools/e2fsprogs.git]
/
lib
/
ext2fs
/
mmp.c
diff --git
a/lib/ext2fs/mmp.c
b/lib/ext2fs/mmp.c
index
9ef4580
..
7970aac
100644
(file)
--- a/
lib/ext2fs/mmp.c
+++ b/
lib/ext2fs/mmp.c
@@
-58,7
+58,7
@@
errcode_t ext2fs_mmp_read(ext2_filsys fs, blk64_t mmp_blk, void *buf)
* the MMP block by the io_manager or the VM. It needs to be fresh. */
if (fs->mmp_fd <= 0) {
struct stat st;
- int flags = O_RD
WR
| O_DIRECT;
+ int flags = O_RD
ONLY
| O_DIRECT;
/*
* There is no reason for using O_DIRECT if we're working with