fix: 修改/proc/mounts显示格式
显示信息内容及格式修改为与posix标准一致,内容包括: 1、挂载设备名 2、挂载点路径 3、文件系统类型 4、挂载选项(此项暂不支持,打印()) 5、dump频率(此项暂不支持,值为0) 6、fsck检查次序(此项暂不支持,值为0) close #I3XGCS Signed-off-by: chenjing <chenjing139@huawei.com> Change-Id: I2a8cb093e7c5316feb55fb196bc1b4301d8d0249
This commit is contained in:
@@ -53,6 +53,7 @@ struct Mount {
|
||||
uint32_t hashseed; /* Random seed for vfshash */
|
||||
unsigned long mountFlags; /* Flags for mount */
|
||||
char pathName[PATH_MAX]; /* path name of mount point */
|
||||
char devName[PATH_MAX]; /* path name of dev point */
|
||||
};
|
||||
|
||||
struct MountOps {
|
||||
@@ -61,7 +62,8 @@ struct MountOps {
|
||||
int (*Statfs)(struct Mount *mount, struct statfs *sbp);
|
||||
};
|
||||
|
||||
typedef int (*foreach_mountpoint_t)(const char *mountpoint,
|
||||
typedef int (*foreach_mountpoint_t)(const char *devpoint,
|
||||
const char *mountpoint,
|
||||
struct statfs *statbuf,
|
||||
void *arg);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user