Home
last modified time | relevance | path

Searched refs:mount_flags (Results 1 – 25 of 32) sorted by relevance

12

/external/e2fsprogs/lib/ext2fs/
Dismounted.c97 int *mount_flags, char *mtpt, int mtlen) in check_mntent_file() argument
107 *mount_flags = 0; in check_mntent_file()
162 *mount_flags = EXT2_MF_MOUNTED; in check_mntent_file()
197 *mount_flags = EXT2_MF_MOUNTED; in check_mntent_file()
202 *mount_flags |= EXT2_MF_READONLY; in check_mntent_file()
216 *mount_flags |= EXT2_MF_ISROOT; in check_mntent_file()
220 *mount_flags |= EXT2_MF_READONLY; in check_mntent_file()
231 static errcode_t check_mntent(const char *file, int *mount_flags, in check_mntent() argument
237 retval = check_mntent_file("/tmp/mtab", file, mount_flags, in check_mntent()
243 retval = check_mntent_file("/proc/mounts", file, mount_flags, in check_mntent()
[all …]
Dmkjournal.c444 int mount_flags; in ext2fs_add_journal_inode2() local
448 mount_flags = 0; in ext2fs_add_journal_inode2()
450 &mount_flags, in ext2fs_add_journal_inode2()
454 if (mount_flags & EXT2_MF_MOUNTED) { in ext2fs_add_journal_inode2()
524 if ((mount_flags & EXT2_MF_BUSY) && in ext2fs_add_journal_inode2()
Dnt_io.c993 ext2fs_check_if_mounted(const char *file, int *mount_flags) in ext2fs_check_if_mounted() argument
998 *mount_flags = 0; in ext2fs_check_if_mounted()
1007 *mount_flags &= _IsMounted(h) ? EXT2_MF_MOUNTED : 0; in ext2fs_check_if_mounted()
/external/e2fsprogs/misc/
Dismounted.c81 int *mount_flags) in check_mntent_file() argument
91 *mount_flags = 0; in check_mntent_file()
147 *mount_flags = MF_MOUNTED; in check_mntent_file()
177 *mount_flags = MF_MOUNTED; in check_mntent_file()
191 int mount_flags = 0; in is_mounted() local
194 retval = check_mntent_file("/proc/mounts", file, &mount_flags); in is_mounted()
197 if (mount_flags) in is_mounted()
200 retval = check_mntent_file("/etc/mtab", file, &mount_flags); in is_mounted()
203 return (mount_flags); in is_mounted()
Dutil.c121 int mount_flags; in check_mount() local
123 retval = ext2fs_check_if_mounted(device, &mount_flags); in check_mount()
130 if (mount_flags & EXT2_MF_MOUNTED) { in check_mount()
141 if (mount_flags & EXT2_MF_BUSY) { in check_mount()
Dblkid.c185 int len, mount_flags; in pretty_print_dev() local
216 retval = ext2fs_check_mount_point(devname, &mount_flags, in pretty_print_dev()
219 if (mount_flags & EXT2_MF_MOUNTED) { in pretty_print_dev()
222 } else if (mount_flags & EXT2_MF_BUSY) in pretty_print_dev()
Dtune2fs.c85 static int max_mount_count, mount_count, mount_flags; variable
434 if (mount_flags & EXT2_MF_READONLY) in check_fsck_needed()
457 if (mount_flags & EXT2_MF_READONLY) in request_dir_fsck_afterwards()
470 if (mount_flags & EXT2_MF_READONLY) in request_fsck_afterwards()
1142 if ((mount_flags & EXT2_MF_MOUNTED) && in update_feature_set()
1143 !(mount_flags & EXT2_MF_READONLY)) { in update_feature_set()
1181 if ((mount_flags & EXT2_MF_MOUNTED) || in update_feature_set()
1182 (mount_flags & EXT2_MF_READONLY)) { in update_feature_set()
1209 if (mount_flags & EXT2_MF_READONLY) { in update_feature_set()
1273 if ((mount_flags & EXT2_MF_MOUNTED) && in update_feature_set()
[all …]
De2freefrag.c173 int mount_flags; in scan_online() local
179 retval = ext2fs_check_mount_point(fs->device_name, &mount_flags, in scan_online()
185 if (!(mount_flags & EXT2_MF_MOUNTED)) in scan_online()
De2undo.c300 int mount_flags, csum_error = 0, io_error = 0; in main() local
431 retval = ext2fs_check_if_mounted(device_name, &mount_flags); in main()
438 if (mount_flags & EXT2_MF_MOUNTED) { in main()
Dbadblocks.c997 int mount_flags; in check_mount() local
999 retval = ext2fs_check_if_mounted(device_name, &mount_flags); in check_mount()
1006 if (mount_flags & EXT2_MF_MOUNTED) { in check_mount()
1018 if ((mount_flags & EXT2_MF_BUSY) && !exclusive_ok) { in check_mount()
De2image.c1470 int mount_flags = 0; in main() local
1563 retval = ext2fs_check_if_mounted(device_name, &mount_flags); in main()
1570 (mount_flags & EXT2_MF_MOUNTED) && in main()
1571 !(mount_flags & EXT2_MF_READONLY)) { in main()
/external/linux-kselftest/tools/testing/selftests/mount/
Dunprivileged-remount-test.c183 int mount_flags, int remount_flags, int invalid_flags) in test_unpriv_remount() argument
216 if (mount("testing", "/tmp", fstype, mount_flags, mount_options) != 0) { in test_unpriv_remount()
246 static bool test_unpriv_remount_simple(int mount_flags) in test_unpriv_remount_simple() argument
248 return test_unpriv_remount("ramfs", NULL, mount_flags, mount_flags, 0); in test_unpriv_remount_simple()
251 static bool test_unpriv_remount_atime(int mount_flags, int invalid_flags) in test_unpriv_remount_atime() argument
253 return test_unpriv_remount("ramfs", NULL, mount_flags, mount_flags, in test_unpriv_remount_atime()
/external/minijail/
Dsystem_unittest.cc264 TEST(setup_mount_destination, mount_flags) { in TEST() argument
271 unsigned long mount_flags = -1; in TEST() local
275 &mount_flags)); in TEST()
276 EXPECT_EQ(stvfs_buf.f_flag, mount_flags); in TEST()
280 mount_flags = -1; in TEST()
283 true, &mount_flags)); in TEST()
284 EXPECT_EQ(stvfs_buf.f_flag, mount_flags); in TEST()
/external/syzkaller/sys/linux/
Dfilesystem.txt6 …, dst ptr[in, filename], type ptr[in, string[filesystem]], flags flags[mount_flags], data buffer[i…
9 mount$bpf(src const[0], dst ptr[in, filename], type ptr[in, string["bpf"]], flags flags[mount_flags
15 … len[segments], segments ptr[in, array[fs_image_segment]], flags flags[mount_flags], opts ptr[in, …
17 … len[segments], segments ptr[in, array[fs_image_segment]], flags flags[mount_flags], opts ptr[in, …
19 … len[segments], segments ptr[in, array[fs_image_segment]], flags flags[mount_flags], opts const[0])
21 … len[segments], segments ptr[in, array[fs_image_segment]], flags flags[mount_flags], opts ptr[in, …
23 … len[segments], segments ptr[in, array[fs_image_segment]], flags flags[mount_flags], opts const[0])
25 … len[segments], segments ptr[in, array[fs_image_segment]], flags flags[mount_flags], opts ptr[in, …
27 … len[segments], segments ptr[in, array[fs_image_segment]], flags flags[mount_flags], opts ptr[in, …
29 … len[segments], segments ptr[in, array[fs_image_segment]], flags flags[mount_flags], opts ptr[in, …
[all …]
D9p.txt16 …nst[0], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, …
17 …0.1"]], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, …
18 …ename], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, …
19 …0.1"]], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, …
21 …tring], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, …
23 …tring], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, …
Dfuse.txt15 …t[0], dst ptr[in, filename], type ptr[in, string["fuse"]], flags flags[mount_flags], opts ptr[in, …
16 …], dst ptr[in, filename], type ptr[in, string["fuseblk"]], flags flags[mount_flags], opts ptr[in, …
/external/e2fsprogs/resize/
Dmain.c270 int len, mount_flags; in main() local
350 retval = ext2fs_check_mount_point(device_name, &mount_flags, in main()
358 if (!(mount_flags & EXT2_MF_MOUNTED) || (mtpt[len-1] == 0)) in main()
402 if (!(mount_flags & EXT2_MF_MOUNTED)) in main()
431 if (!force && !(mount_flags & EXT2_MF_MOUNTED)) { in main()
580 if (mount_flags & EXT2_MF_MOUNTED) { in main()
608 if (mount_flags & EXT2_MF_MOUNTED) { in main()
/external/e2fsprogs/e2fsck/
Dunix.c234 &ctx->mount_flags); in check_mount()
247 if ((!(ctx->mount_flags & (EXT2_MF_MOUNTED | EXT2_MF_BUSY))) || in check_mount()
248 ((ctx->mount_flags & EXT2_MF_ISROOT) && in check_mount()
249 (ctx->mount_flags & EXT2_MF_READONLY) && in check_mount()
255 (ctx->mount_flags & EXT2_MF_READONLY))) && in check_mount()
257 if (ctx->mount_flags & EXT2_MF_MOUNTED) in check_mount()
266 if (ctx->mount_flags & EXT2_MF_MOUNTED) in check_mount()
270 if (!ctx->interactive || ctx->mount_flags & EXT2_MF_BUSY) in check_mount()
1467 if (!(ctx->mount_flags & EXT2_MF_ISROOT && in main()
1468 ctx->mount_flags & EXT2_MF_READONLY)) in main()
[all …]
Djournal.c430 if (!(ctx->mount_flags & EXT2_MF_ISROOT && in e2fsck_get_journal()
431 ctx->mount_flags & EXT2_MF_READONLY)) in e2fsck_get_journal()
433 if ((ctx->mount_flags & EXT2_MF_READONLY) && in e2fsck_get_journal()
1038 int mount_flags; in e2fsck_move_ext3_journal() local
1090 retval = ext2fs_check_if_mounted(ctx->filesystem_name, &mount_flags); in e2fsck_move_ext3_journal()
1091 if (retval || (mount_flags & EXT2_MF_MOUNTED)) in e2fsck_move_ext3_journal()
De2fsck.h241 int mount_flags; member
Dutil.c73 if (ctx->mount_flags & EXT2_MF_ISROOT) in fatal_error()
/external/strace/xlat/
Dmount_flags.h221 # error static const struct xlat mount_flags in mpers mode
226 const struct xlat mount_flags[] = {
/external/ltp/testcases/kernel/syscalls/open/
Dopen12.c80 const char *mount_flags[] = {"noatime", "relatime", NULL}; in setup() local
90 if (tst_path_has_mnt_flags(cleanup, NULL, mount_flags)) { in setup()
/external/e2fsprogs/debugfs/
De2freefrag.c173 int mount_flags; in scan_online() local
179 retval = ext2fs_check_mount_point(fs->device_name, &mount_flags, in scan_online()
185 if (!(mount_flags & EXT2_MF_MOUNTED)) in scan_online()
/external/strace/
Dmount.c78 printflags64(mount_flags, flags, "MS_???"); in SYS_FUNC()

12