Lines Matching refs:device
27 2) ENOTBLK if specialfile is not a block device
31 4) EINVAL if specialfile or device is invalid or
34 5) EFAULT if specialfile or device file points to invalid address space.
62 static const char *device;
76 const char **device;
84 {&device, &mntpoint, &wrong_fs_type, 0, ENODEV, NULL, NULL},
86 {&device, &mntpoint, &fs_type, 0, EBUSY, do_mount, do_umount},
87 {&device, &mntpoint, &fs_type, MS_REMOUNT | MS_RDONLY, EBUSY,
90 {&device, &mntpoint, &null, 0, EINVAL, NULL, NULL},
91 {&device, &mntpoint, &fs_type, MS_REMOUNT, EINVAL, NULL, NULL},
93 {&device, &mntpoint, &fault, 0, EFAULT, NULL, NULL},
94 {&device, &long_path, &fs_type, 0, ENAMETOOLONG, NULL, NULL},
95 {&device, &nonexistent, &fs_type, 0, ENOENT, NULL, NULL},
96 {&device, &file, &fs_type, 0, ENOTDIR, NULL, NULL},
106 TEST(mount(*tc->device, *tc->mntpoint, *tc->fs_type, tc->flag, NULL));
149 if (mount(device, mntpoint, fs_type, 0, NULL))
185 device = tst_acquire_device(cleanup);
187 if (!device)
188 tst_brkm(TCONF, cleanup, "Failed to obtain block device");
190 tst_mkfs(cleanup, device, fs_type, NULL, NULL);
208 if (device)
209 tst_release_device(device);