Home
last modified time | relevance | path

Searched refs:MS_RDONLY (Results 1 - 25 of 56) sorted by relevance

123

/third_party/toybox/porting/liteos_a/toys/lsb/
H A Dmount.c95 {"ro", MS_RDONLY}, {"rw", ~MS_RDONLY}, in flag_opts()
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()
/third_party/toybox/toys/lsb/
H A Dmount.c99 {"ro", MS_RDONLY}, {"rw", ~MS_RDONLY}, in flag_opts()
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/liteos_a_newlib/kernel/include/sys/
H A 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_m/kernel/include/sys/
H A 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/uniproton/kernel/include/sys/
H A 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/kernel/include/sys/
H A 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_m_iccarm/kernel/include/sys/
H A 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/
H A 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/
H A 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/driver/
H A Dfs_findblockdriver.c45 * mountflags - If MS_RDONLY is not set, then driver must support write
54 * EACCESS - The MS_RDONLY option was not set but this driver does not
86 if (i_bops == NULL || i_bops->read == NULL || (i_bops->write == NULL && (mountflags & MS_RDONLY) == 0)) in find_blockdriver()
/third_party/ltp/testcases/kernel/containers/pidns/
H A Dpidns03.c24 SAFE_MOUNT("none", PROCDIR, "proc", MS_RDONLY, NULL); in child_func()
/third_party/NuttX/fs/vfs/
H A 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()
H A Dfs_rmdir.c46 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) in check_target()
H A Dfs_unlink.c45 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) in check_target()
H A Dfs_link.c96 if ((mount != NULL) && (mount->mountFlags & MS_RDONLY)) in do_link()
H A Dfs_mkdir.c103 if ((mount != NULL) && (mount->mountFlags & MS_RDONLY)) in do_mkdir()
H A Dfs_symlink.c142 if ((mount != NULL) && (mount->mountFlags & MS_RDONLY)) in do_symlink()
/third_party/ltp/testcases/kernel/syscalls/mount/
H A Dmount03.c15 * - MS_RDONLY - mount read-only
181 {FLAG_DESC(MS_RDONLY), test_rdonly},
184 {MS_RDONLY, FLAG_DESC2(MS_REMOUNT), test_remount},
/third_party/ltp/testcases/kernel/syscalls/ioctl/
H A Dioctl04.c58 TEST(mount(tst_device->dev, "mntpoint", tst_device->fs_type, MS_RDONLY, NULL)); in verify_ioctl()
/third_party/ntfs-3g/libfuse-lite/
H A 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()
H A 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/NuttX/drivers/bch/
H A Dbchlib_setup.c67 ret = open_blockdriver(blkdev, readonly ? MS_RDONLY : 0, &bch->vnode); in bchlib_setup()
/third_party/ltp/testcases/kernel/syscalls/lchown/
H A Dlchown03.c112 SAFE_MOUNT(cleanup, device, TEST_EROFS, fs_type, MS_RDONLY, NULL); in setup()
/third_party/ltp/testcases/kernel/syscalls/mknod/
H A Dmknod07.c134 SAFE_MOUNT(cleanup, device, MNT_POINT, fs_type, MS_RDONLY, NULL); in setup()
/third_party/ltp/testcases/kernel/syscalls/rename/
H A Drename11.c152 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_REMOUNT | MS_RDONLY, in test_erofs()

Completed in 10 milliseconds

123