From 29ca4b3679a569b4c972cbaa2cdb634e7ee19aa6 Mon Sep 17 00:00:00 2001 From: dianshi Date: Tue, 7 Jul 2020 18:09:07 +0100 Subject: Update new fs table --- README.txt | 11 ++++++++++- nmount.c | 8 ++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/README.txt b/README.txt index 354d8d0..858079c 100644 --- a/README.txt +++ b/README.txt @@ -5,8 +5,17 @@ nmount -v -t ext4 -s /dev/mmcblk0p7 -d /mnt/disk0 -f nodev,noexec,nosuid #mount proc nmount_static -v -t proc -d /Process -f nosuid,nodev,noexec,realtime + #mount dev nmount_static -v -t devtmpfs -d /Devices -f nosuid + #mount sys nmount_static -v -t sysfs -d /System -f nosuid,nodec,nosuid,realtime -#mount other disk \ No newline at end of file + +#mount ext4 + +#mount mqueue +nmount_static -v -t mqueue -d /Queue -f nosuid,nodec,nosuid,realtime + +#mount tmpfs +nmount_static -v -t tmpfs -d /Ram -f nosuid,nodec,nosuid,realtime diff --git a/nmount.c b/nmount.c index 7746855..ecb0219 100644 --- a/nmount.c +++ b/nmount.c @@ -87,12 +87,16 @@ static const struct vfs { vfs_options *options; //hellpers to show all possible options to config fs mount } vfstab[] = { {"devtmpfs", 0, "/Device", 1, NULL}, - {"mqueue", 0, "/MQueue/", 0, NULL}, + {"mqueue", 0, "/Queue/", 1, NULL}, {"proc", 0, "/Process", 1, (struct vfs_options*)&vfs_options_proc}, - {"tmpfs", 0, "/Ram", 0, NULL}, + {"tmpfs", 0, "/Ram", 1, NULL}, {"sysfs", 0, "/System", 1, NULL}, {"ext4", 0, NULL, 0, NULL}, + {"ext3", 0, NULL, 0, NULL}, + {"ext2", 0, NULL, 0, NULL}, {"vfat", 0, NULL, 0, NULL}, + {"msdos", 0, NULL, 0, NULL}, + {"ntfs", 0, NULL, 0, NULL}, {NULL, 0, NULL, 0, NULL}, }; -- cgit v1.2.3