* fhandler_proc.cc: Add /proc/filesystems virtual file.
(format_proc_filesystems): New function. * mount.cc (fs_names): Move to global scope. Redefine as array of { "name", block_device? } structs. (fillout_mntent): Use name member of fs_names. * mount.h (fs_names): New prototype.
This commit is contained in:
@ -32,6 +32,11 @@ enum fs_info_type
|
||||
max_fs_type
|
||||
};
|
||||
|
||||
extern struct fs_names_t {
|
||||
const char *name;
|
||||
bool block_device;
|
||||
} fs_names[];
|
||||
|
||||
#define IMPLEMENT_FS_FLAG(func, flag) \
|
||||
bool func (bool val) { if (val) status.fs_type = flag; return val; } \
|
||||
bool func () const { return status.fs_type == flag; }
|
||||
|
Reference in New Issue
Block a user