Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:device

87 		 * Do an extra check to see if this is the root device.  We
90 * check if the given device has the same major/minor number
91 * as the device that the root directory is on.
234 * Check to see if we're dealing with the swap device.
281 * ext2fs_check_mount_point() fills determines if the device is
285 * non-NULL, the directory where the device is mounted is copied to
291 errcode_t ext2fs_check_mount_point(const char *device, int *mount_flags,
298 if (is_swap_device(device)) {
303 retval = check_mntent(device, mount_flags, mtpt, mtlen);
306 retval = check_getmntinfo(device, mount_flags, mtpt, mtlen);
319 if ((stat(device, &st_buf) != 0) ||
322 fd = open(device, O_RDONLY | O_EXCL);
350 fprintf(stderr, "Usage: %s device\n", argv[0]);
362 printf("Device %s reports flags %02x\n", argv[1], mount_flags);
368 printf("\t%s is a swap device.\n", argv[1]);