mount: don't overwrite mount flags by MS_STRICTATIME

Submitted by Andrei Vagin on Oct. 14, 2016, 2:52 a.m.

Details

Message ID 1476413521-855-1-git-send-email-avagin@openvz.org
State Superseded
Series "mount: don't overwrite mount flags by MS_STRICTATIME"
Headers show

Commit Message

Andrei Vagin Oct. 14, 2016, 2:52 a.m.
From: Andrei Vagin <avagin@virtuozzo.com>

It's typo fix. MS_STRICTATIME has to be added to other flags there.

Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
---
 criu/proc_parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/criu/proc_parse.c b/criu/proc_parse.c
index 204c31e..84374e9 100644
--- a/criu/proc_parse.c
+++ b/criu/proc_parse.c
@@ -1196,7 +1196,7 @@  static int parse_mnt_flags(char *opt, unsigned *flags)
 
 	/* Otherwise the kernel assumes RELATIME by default */
 	if ((*flags & (MS_RELATIME | MS_NOATIME)) == 0)
-		*flags = MS_STRICTATIME;
+		*flags |= MS_STRICTATIME;
 
 	return 0;
 }

Comments

Pavel Emelianov Oct. 14, 2016, 1:45 p.m.
Applied