• Home
  • Raw
  • Download

Lines Matching refs:mount_flags

81 				   int *mount_flags, char *mtpt, int mtlen)  in check_mntent_file()  argument
91 *mount_flags = 0; in check_mntent_file()
145 *mount_flags = EXT2_MF_MOUNTED; in check_mntent_file()
180 *mount_flags = EXT2_MF_MOUNTED; in check_mntent_file()
185 *mount_flags |= EXT2_MF_READONLY; in check_mntent_file()
199 *mount_flags |= EXT2_MF_ISROOT; in check_mntent_file()
203 *mount_flags |= EXT2_MF_READONLY; in check_mntent_file()
214 static errcode_t check_mntent(const char *file, int *mount_flags, in check_mntent() argument
220 retval = check_mntent_file("/tmp/mtab", file, mount_flags, in check_mntent()
226 retval = check_mntent_file("/proc/mounts", file, mount_flags, in check_mntent()
228 if (retval == 0 && (*mount_flags != 0)) in check_mntent()
235 retval = check_mntent_file(MOUNTED, file, mount_flags, mtpt, mtlen); in check_mntent()
238 *mount_flags = 0; in check_mntent()
246 static errcode_t check_getmntinfo(const char *file, int *mount_flags, in check_getmntinfo() argument
263 *mount_flags = 0; in check_getmntinfo()
271 *mount_flags = EXT2_MF_MOUNTED; in check_getmntinfo()
349 errcode_t ext2fs_check_mount_point(const char *device, int *mount_flags, in ext2fs_check_mount_point() argument
355 *mount_flags = EXT2_MF_MOUNTED | EXT2_MF_SWAP; in ext2fs_check_mount_point()
359 retval = check_mntent(device, mount_flags, mtpt, mtlen); in ext2fs_check_mount_point()
362 retval = check_getmntinfo(device, mount_flags, mtpt, mtlen); in ext2fs_check_mount_point()
367 *mount_flags = 0; in ext2fs_check_mount_point()
384 *mount_flags |= EXT2_MF_BUSY; in ext2fs_check_mount_point()
397 errcode_t ext2fs_check_if_mounted(const char *file, int *mount_flags) in ext2fs_check_if_mounted() argument
399 return ext2fs_check_mount_point(file, mount_flags, NULL, 0); in ext2fs_check_if_mounted()
405 int retval, mount_flags; in main() local
415 retval = ext2fs_check_mount_point(argv[1], &mount_flags, in main()
422 printf("Device %s reports flags %02x\n", argv[1], mount_flags); in main()
423 if (mount_flags & EXT2_MF_BUSY) in main()
425 if (mount_flags & EXT2_MF_MOUNTED) in main()
427 if (mount_flags & EXT2_MF_SWAP) in main()
429 if (mount_flags & EXT2_MF_READONLY) in main()
431 if (mount_flags & EXT2_MF_ISROOT) in main()