2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

mount: Full parse of proc mountinfo file

The proc_parse file turns into a strange pile of homebrew
scanf/fgets/strtok/strchr/etc. combination. I don't like it :(

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-05-13 08:30:06 +04:00
parent f986994272
commit 3b21f72766
2 changed files with 146 additions and 4 deletions

View File

@@ -91,6 +91,12 @@ struct proc_mountinfo {
unsigned int s_dev;
char root[64];
char mountpoint[64];
unsigned flags;
int master_id;
int shared_id;
char fstype[32];
char source[64];
char options[128];
struct proc_mountinfo *next;
};