mount-util: make mount_flags_to_string() show flag name instead of number

This also adds missing MS_NOSYMFOLLOW flag. Moreover, this makes the
function always add unhandled flags in number.
This commit is contained in:
Yu Watanabe
2021-06-21 21:14:20 +09:00
parent d3d1559435
commit 1c092b62db
3 changed files with 54 additions and 63 deletions
+1
View File
@@ -144,6 +144,7 @@ basic_sources = files('''
missing_keyctl.h
missing_magic.h
missing_mman.h
missing_mount.h
missing_network.h
missing_prctl.h
missing_random.h
+8
View File
@@ -0,0 +1,8 @@
#pragma once
#include <sys/mount.h>
/* dab741e0e02bd3c4f5e2e97be74b39df2523fc6e (5.10) */
#ifndef MS_NOSYMFOLLOW
#define MS_NOSYMFOLLOW 256
#endif