Home
last modified time | relevance | path

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

12

/external/e2fsprogs/lib/ext2fs/
Dismounted.c96 int *mount_flags, char *mtpt, int mtlen) in check_mntent_file() argument
106 *mount_flags = 0; in check_mntent_file()
161 *mount_flags = EXT2_MF_MOUNTED; in check_mntent_file()
196 *mount_flags = EXT2_MF_MOUNTED; in check_mntent_file()
201 *mount_flags |= EXT2_MF_READONLY; in check_mntent_file()
215 *mount_flags |= EXT2_MF_ISROOT; in check_mntent_file()
219 *mount_flags |= EXT2_MF_READONLY; in check_mntent_file()
230 static errcode_t check_mntent(const char *file, int *mount_flags, in check_mntent() argument
236 retval = check_mntent_file("/tmp/mtab", file, mount_flags, in check_mntent()
242 retval = check_mntent_file("/proc/mounts", file, mount_flags, in check_mntent()
[all …]
Dmkjournal.c442 int mount_flags; in ext2fs_add_journal_inode2() local
446 mount_flags = 0; in ext2fs_add_journal_inode2()
448 &mount_flags, in ext2fs_add_journal_inode2()
452 if (mount_flags & EXT2_MF_MOUNTED) { in ext2fs_add_journal_inode2()
522 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()
Dext2fs.h1514 extern errcode_t ext2fs_check_if_mounted(const char *file, int *mount_flags);
1515 extern errcode_t ext2fs_check_mount_point(const char *device, int *mount_flags,
/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
422 if (mount_flags & EXT2_MF_READONLY) in check_fsck_needed()
444 if (mount_flags & EXT2_MF_READONLY) in request_dir_fsck_afterwards()
457 if (mount_flags & EXT2_MF_READONLY) in request_fsck_afterwards()
1023 if ((mount_flags & EXT2_MF_MOUNTED) && in update_feature_set()
1024 !(mount_flags & EXT2_MF_READONLY)) { in update_feature_set()
1062 if ((mount_flags & EXT2_MF_MOUNTED) || in update_feature_set()
1063 (mount_flags & EXT2_MF_READONLY)) { in update_feature_set()
1090 if (mount_flags & EXT2_MF_READONLY) { in update_feature_set()
1154 if ((mount_flags & EXT2_MF_MOUNTED) && in update_feature_set()
[all …]
De2undo.c294 int mount_flags, csum_error = 0, io_error = 0; in main() local
425 retval = ext2fs_check_if_mounted(device_name, &mount_flags); in main()
432 if (mount_flags & EXT2_MF_MOUNTED) { in main()
Dbadblocks.c988 int mount_flags; in check_mount() local
990 retval = ext2fs_check_if_mounted(device_name, &mount_flags); in check_mount()
997 if (mount_flags & EXT2_MF_MOUNTED) { in check_mount()
1009 if ((mount_flags & EXT2_MF_BUSY) && !exclusive_ok) { in check_mount()
De2image.c1458 int mount_flags = 0; in main() local
1551 retval = ext2fs_check_if_mounted(device_name, &mount_flags); in main()
1558 (mount_flags & EXT2_MF_MOUNTED) && in main()
1559 !(mount_flags & EXT2_MF_READONLY)) { in main()
/external/linux-kselftest/tools/testing/selftests/mount/
Dunprivileged-remount-test.c182 int mount_flags, int remount_flags, int invalid_flags) in test_unpriv_remount() argument
215 if (mount("testing", "/tmp", fstype, mount_flags, mount_options) != 0) { in test_unpriv_remount()
245 static bool test_unpriv_remount_simple(int mount_flags) in test_unpriv_remount_simple() argument
247 return test_unpriv_remount("ramfs", NULL, mount_flags, mount_flags, 0); in test_unpriv_remount_simple()
250 static bool test_unpriv_remount_atime(int mount_flags, int invalid_flags) in test_unpriv_remount_atime() argument
252 return test_unpriv_remount("ramfs", NULL, mount_flags, mount_flags, in test_unpriv_remount_atime()
/external/e2fsprogs/resize/
Dmain.c269 int len, mount_flags; in main() local
349 retval = ext2fs_check_mount_point(device_name, &mount_flags, in main()
357 if (!(mount_flags & EXT2_MF_MOUNTED) || (mtpt[len-1] == 0)) in main()
401 if (!(mount_flags & EXT2_MF_MOUNTED)) in main()
430 if (!force && !(mount_flags & EXT2_MF_MOUNTED)) { in main()
574 if (mount_flags & EXT2_MF_MOUNTED) { in main()
602 if (mount_flags & EXT2_MF_MOUNTED) { in main()
/external/strace/xlat/
Dmount_flags.h92 # error static const struct xlat mount_flags in mpers mode
97 const struct xlat mount_flags[] = { variable
DMakemodule.am1 …n xlat/modem_flags.in xlat/modetypes.in xlat/module_init_flags.in xlat/mount_flags.in xlat/move_pa…
2 …ot.h xlat/modem_flags.h xlat/modetypes.h xlat/module_init_flags.h xlat/mount_flags.h xlat/move_pag…
317 $(top_srcdir)/xlat/mount_flags.h: $(top_srcdir)/xlat/mount_flags.in $(top_srcdir)/xlat/gen.sh
/external/e2fsprogs/e2fsck/
Dunix.c232 &ctx->mount_flags); in check_mount()
245 if ((!(ctx->mount_flags & (EXT2_MF_MOUNTED | EXT2_MF_BUSY))) || in check_mount()
246 ((ctx->mount_flags & EXT2_MF_ISROOT) && in check_mount()
247 (ctx->mount_flags & EXT2_MF_READONLY) && in check_mount()
253 (ctx->mount_flags & EXT2_MF_READONLY))) && in check_mount()
255 if (ctx->mount_flags & EXT2_MF_MOUNTED) in check_mount()
264 if (ctx->mount_flags & EXT2_MF_MOUNTED) in check_mount()
268 if (!ctx->interactive || ctx->mount_flags & EXT2_MF_BUSY) in check_mount()
1425 if (!(ctx->mount_flags & EXT2_MF_ISROOT && in main()
1426 ctx->mount_flags & EXT2_MF_READONLY)) in main()
[all …]
Djournal.c427 if (!(ctx->mount_flags & EXT2_MF_ISROOT && in e2fsck_get_journal()
428 ctx->mount_flags & EXT2_MF_READONLY)) in e2fsck_get_journal()
430 if ((ctx->mount_flags & EXT2_MF_READONLY) && in e2fsck_get_journal()
1035 int mount_flags; in e2fsck_move_ext3_journal() local
1087 retval = ext2fs_check_if_mounted(ctx->filesystem_name, &mount_flags); in e2fsck_move_ext3_journal()
1088 if (retval || (mount_flags & EXT2_MF_MOUNTED)) in e2fsck_move_ext3_journal()
De2fsck.h237 int mount_flags; member
Dutil.c73 if (ctx->mount_flags & EXT2_MF_ISROOT) in fatal_error()
Dsuper.c788 (!csum_flag || !(ctx->mount_flags & EXT2_MF_MOUNTED))) { in check_super_block()
/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/strace/
Dmount.c78 printflags64(mount_flags, flags, "MS_???"); in SYS_FUNC()
DChangeLog-CVS1356 [LINUX] (mount_flags): Add them.
1723 [LINUX] (mount_flags): Add it.
2375 [LINUX] (mount_flags): Add them.
5300 (mount_flags, nfs_flags) [SVR4, MIPS]: New objects.
5421 * system.c (mount_flags) [LINUX]: Omit duplicated MS_NOSUID entry.
5501 * system.c [LINUX] (mount_flags): Handle renaming of MS_SYNC to
DMakefile795 xlat/module_init_flags.in xlat/mount_flags.in \
937 xlat/modetypes.h xlat/module_init_flags.h xlat/mount_flags.h \
6255 $(top_srcdir)/xlat/mount_flags.h: $(top_srcdir)/xlat/mount_flags.in $(top_srcdir)/xlat/gen.sh
/external/e2fsprogs/doc/
Dlibext2fs.texinfo1318 @deftypefun errcode_t ext2fs_check_if_mounted (const char *@var{file}, int *@var{mount_flags})

12