• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/e2fsprogs/old_e2fsprogs/ext2fs/

Lines Matching refs:mount_flags

45 				   int *mount_flags, char *mtpt, int mtlen)
55 *mount_flags = 0;
96 *mount_flags = EXT2_MF_MOUNTED;
131 *mount_flags = EXT2_MF_MOUNTED;
136 *mount_flags |= EXT2_MF_READONLY;
150 *mount_flags |= EXT2_MF_ISROOT;
154 *mount_flags |= EXT2_MF_READONLY;
165 static errcode_t check_mntent(const char *file, int *mount_flags,
171 retval = check_mntent_file("/tmp/mtab", file, mount_flags,
177 retval = check_mntent_file("/proc/mounts", file, mount_flags,
179 if (retval == 0 && (*mount_flags != 0))
186 retval = check_mntent_file(MOUNTED, file, mount_flags, mtpt, mtlen);
189 *mount_flags = 0;
197 static errcode_t check_getmntinfo(const char *file, int *mount_flags,
214 *mount_flags = 0;
222 *mount_flags = EXT2_MF_MOUNTED;
290 errcode_t ext2fs_check_mount_point(const char *device, int *mount_flags,
294 *mount_flags = EXT2_MF_MOUNTED | EXT2_MF_SWAP;
299 return check_mntent(device, mount_flags, mtpt, mtlen);
302 return check_getmntinfo(device, mount_flags, mtpt, mtlen);
307 *mount_flags = 0;
314 * ext2fs_check_if_mounted() sets the mount_flags EXT2_MF_MOUNTED,
318 errcode_t ext2fs_check_if_mounted(const char *file, int *mount_flags)
320 return ext2fs_check_mount_point(file, mount_flags, NULL, 0);
326 int retval, mount_flags;
335 retval = ext2fs_check_mount_point(argv[1], &mount_flags,
342 printf("Device %s reports flags %02x\n", argv[1], mount_flags);
343 if (mount_flags & EXT2_MF_BUSY)
345 if (mount_flags & EXT2_MF_MOUNTED)
347 if (mount_flags & EXT2_MF_SWAP)
349 if (mount_flags & EXT2_MF_READONLY)
351 if (mount_flags & EXT2_MF_ISROOT)