* 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:
Corinna Vinschen
2010-08-09 08:18:30 +00:00
parent 99006a85e2
commit a52993d426
4 changed files with 55 additions and 20 deletions

View File

@ -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; }