mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
proc: Align data in parse_mnt_flags and parse_sb_opt
Make it more readable. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
d50cd344d0
commit
f377dade94
26
proc_parse.c
26
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, },
|
||||
{ },
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user