[CRIU] [PATCH] proc: Align data in parse_mnt_flags and parse_sb_opt

Cyrill Gorcunov gorcunov at openvz.org
Tue Jul 28 04:56:31 PDT 2015


Make it more readable.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 proc_parse.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/proc_parse.c b/proc_parse.c
index 5b44f72ed4bf..5a61b6d5eafb 100644
--- a/proc_parse.c
+++ b/proc_parse.c
@@ -890,14 +890,14 @@ static int do_opt2flag(char *opt, unsigned *flags,
 static int parse_mnt_flags(char *opt, unsigned *flags)
 {
 	static const struct opt2flag mnt_opt2flag[] = {
-		{ "rw", 0, },
-		{ "ro", MS_RDONLY, },
-		{ "nosuid", MS_NOSUID, },
-		{ "nodev", MS_NODEV, } ,
-		{ "noexec", MS_NOEXEC, },
-		{ "noatime", MS_NOATIME, },
-		{ "nodiratime", MS_NODIRATIME, },
-		{ "relatime", MS_RELATIME, },
+		{ "rw",		0,		},
+		{ "ro",		MS_RDONLY,	},
+		{ "nosuid",	MS_NOSUID,	},
+		{ "nodev",	MS_NODEV,	},
+		{ "noexec",	MS_NOEXEC,	},
+		{ "noatime",	MS_NOATIME,	},
+		{ "nodiratime",	MS_NODIRATIME,	},
+		{ "relatime",	MS_RELATIME,	},
 		{ },
 	};
 
@@ -914,11 +914,11 @@ static int parse_mnt_flags(char *opt, unsigned *flags)
 static int parse_sb_opt(char *opt, unsigned *flags, char *uopt)
 {
 	static const struct opt2flag sb_opt2flag[] = {
-		{ "rw", 0, },
-		{ "ro", MS_RDONLY, },
-		{ "sync", MS_SYNC, },
-		{ "dirsync", MS_DIRSYNC, },
-		{ "mad", MS_MANDLOCK, },
+		{ "rw",		0,		},
+		{ "ro",		MS_RDONLY,	},
+		{ "sync",	MS_SYNC,	},
+		{ "dirsync",	MS_DIRSYNC,	},
+		{ "mad",	MS_MANDLOCK,	},
 		{ },
 	};
 
-- 
2.4.3



More information about the CRIU mailing list