diff --git a/mount.c b/mount.c index 3a45de2e1..1427e6a81 100644 --- a/mount.c +++ b/mount.c @@ -342,13 +342,13 @@ out: } static struct fstype fstypes[] = { - { "unsupported" }, - { "proc" }, - { "sysfs" }, - { "devtmpfs" }, - { "binfmt_misc", binfmt_misc_dump }, - { "tmpfs", tmpfs_dump, tmpfs_restore }, - { "devpts" }, + [FSTYPE__UNSUPPORTED] = { "unsupported" }, + [FSTYPE__PROC] = { "proc" }, + [FSTYPE__SYSFS] = { "sysfs" }, + [FSTYPE__DEVTMPFS] = { "devtmpfs" }, + [FSTYPE__BINFMT_MISC] = { "binfmt_misc", binfmt_misc_dump }, + [FSTYPE__TMPFS] = { "tmpfs", tmpfs_dump, tmpfs_restore }, + [FSTYPE__DEVPTS] = { "devpts" }, }; struct fstype *find_fstype_by_name(char *fst) diff --git a/protobuf/mnt.proto b/protobuf/mnt.proto index 25aed8fd4..0c529ac83 100644 --- a/protobuf/mnt.proto +++ b/protobuf/mnt.proto @@ -1,3 +1,13 @@ +enum fstype { + UNSUPPORTED = 0; + PROC = 1; + SYSFS = 2; + DEVTMPFS = 3; + BINFMT_MISC = 4; + TMPFS = 5; + DEVPTS = 6; +}; + message mnt_entry { required uint32 fstype = 1; required uint32 mnt_id = 2;