Home
last modified time | relevance | path

Searched refs:MS_RDONLY (Results 1 – 25 of 62) sorted by relevance

123

/third_party/toybox/porting/liteos_a/toys/lsb/
Dmount.c95 {"ro", MS_RDONLY}, {"rw", ~MS_RDONLY},
227 if (!rc || (errno != EACCES && errno != EROFS) || (flags&MS_RDONLY)) in mount_filesystem()
241 flags |= MS_RDONLY; in mount_filesystem()
258 (flags&MS_RDONLY) ? "-fsr" : "-fs", dev, 0}); in mount_filesystem()
Dumount.c67 if (!mount("", dir, "", MS_REMOUNT|MS_RDONLY, "")) {
/third_party/toybox/toys/lsb/
Dmount.c99 {"ro", MS_RDONLY}, {"rw", ~MS_RDONLY},
240 if (!rc || (errno != EACCES && errno != EROFS) || (flags&MS_RDONLY)) in mount_filesystem()
254 flags |= MS_RDONLY; in mount_filesystem()
271 (flags&MS_RDONLY) ? "-fsr" : "-fs", dev, 0}); in mount_filesystem()
/third_party/musl/porting/uniproton/kernel/include/sys/
Dmount.h26 #define MS_RDONLY 1 macro
56 #define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION|MS_LAZYTIME)
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/
Dmount.h26 #define MS_RDONLY 1 macro
57 #define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION|MS_LAZYTIME)
/third_party/musl/porting/liteos_a/kernel/include/sys/
Dmount.h26 #define MS_RDONLY 1 macro
57 #define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION|MS_LAZYTIME)
/third_party/musl/ndk_musl_include/sys/
Dmount.h26 #define MS_RDONLY 1 macro
56 #define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION|MS_LAZYTIME)
/third_party/musl/porting/liteos_m/kernel/include/sys/
Dmount.h26 #define MS_RDONLY 1 macro
56 #define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION|MS_LAZYTIME)
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dmount.h26 #define MS_RDONLY 1 macro
56 #define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION|MS_LAZYTIME)
/third_party/musl/include/sys/
Dmount.h26 #define MS_RDONLY 1 macro
57 #define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION|MS_LAZYTIME)
/third_party/libfuse/lib/
Dmount.c34 #define MS_RDONLY MNT_RDONLY macro
144 {"rw", MS_RDONLY, 0},
145 {"ro", MS_RDONLY, 1},
574 if (!(flags & MS_RDONLY) && fuse_opt_add_opt(mnt_optsp, "rw") == -1) in get_mnt_flag_opts()
/third_party/NuttX/fs/vfs/
Dfs_open.c196 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY) && in fp_open()
227 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) in fp_open()
Dfs_rmdir.c46 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) in check_target()
Dfs_unlink.c45 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) in check_target()
/third_party/NuttX/fs/driver/
Dfs_findblockdriver.c86 …if (i_bops == NULL || i_bops->read == NULL || (i_bops->write == NULL && (mountflags & MS_RDONLY) =… in find_blockdriver()
/third_party/ltp/testcases/kernel/syscalls/mount/
Dmount03.c74 MS_RDONLY,
78 MS_RDONLY,
/third_party/ntfs-3g/libfuse-lite/
Dfusermount.c223 {"rw", MS_RDONLY, 0, 1},
224 {"ro", MS_RDONLY, 1, 1},
284 if (!(flags & MS_RDONLY) && add_option(mnt_optsp, "rw", 0) == -1) in get_mnt_opts()
Dmount.c197 {"rw", MS_RDONLY, 0},
198 {"ro", MS_RDONLY, 1},
599 if (!(flags & MS_RDONLY) && fuse_opt_add_opt(mnt_optsp, "rw") == -1) in get_mnt_flag_opts()
/third_party/ltp/testcases/kernel/containers/pidns/
Dpidns03.c61 if (mount("none", PROCDIR, "proc", MS_RDONLY, NULL) == -1) { in child_func()
/third_party/ltp/testcases/kernel/syscalls/ioctl/
Dioctl04.c58 TEST(mount(tst_device->dev, "mntpoint", tst_device->fs_type, MS_RDONLY, NULL)); in verify_ioctl()
/third_party/NuttX/drivers/bch/
Dbchlib_setup.c67 ret = open_blockdriver(blkdev, readonly ? MS_RDONLY : 0, &bch->vnode); in bchlib_setup()
/third_party/ltp/testcases/kernel/security/tomoyo/
Dtomoyo_filesystem_test.c319 if (mount(dev_ram_path, "/tmp/mount/", "ext2", MS_RDONLY, NULL) in main()
351 if (mount(dev_ram_path, "/tmp/mount/", "ext2", MS_RDONLY, NULL) in main()
/third_party/ltp/testcases/kernel/syscalls/lchown/
Dlchown03.c112 SAFE_MOUNT(cleanup, device, TEST_EROFS, fs_type, MS_RDONLY, NULL); in setup()
/third_party/rust/crates/nix/src/mount/
Dlinux.rs9 MS_RDONLY;
/third_party/ltp/testcases/kernel/syscalls/rename/
Drename11.c152 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_REMOUNT | MS_RDONLY, in test_erofs()

123