Lines Matching defs:dev_path
36 static char dev_path[PATH_MAX];
198 uint64_t tst_get_device_size(const char *dev_path)
204 if (!dev_path)
207 if (stat(dev_path, &st)) {
213 tst_resm(TWARN, "%s is not a block device", dev_path);
217 fd = open(dev_path, O_RDONLY);
220 "open(%s, O_RDONLY) failed", dev_path);
297 if (tst_find_free_loopdev(dev_path, sizeof(dev_path)) == -1)
300 if (tst_attach_device(dev_path, filename))
303 return dev_path;