summaryrefslogtreecommitdiffstats
path: root/old-tests
diff options
context:
space:
mode:
authorJoe Thornber <thornber@redhat.com>2001-10-09 16:05:34 +0000
committerJoe Thornber <thornber@redhat.com>2001-10-09 16:05:34 +0000
commitb1713d284d67a193b85dde2de701026cefad422f (patch)
treeed18a0cb0038d64e16d6d7ed29d2bc7b65c0bdf9 /old-tests
parentf2473d0efe55c765ce195218e319585b0d10a064 (diff)
downloadlvm2-b1713d284d67a193b85dde2de701026cefad422f.tar.gz
lvm2-b1713d284d67a193b85dde2de701026cefad422f.tar.xz
lvm2-b1713d284d67a193b85dde2de701026cefad422f.zip
o change pv_read to take a name rather than a device
Diffstat (limited to 'old-tests')
-rw-r--r--old-tests/format1/read_pv_t.c7
-rw-r--r--old-tests/format1/read_vg_t.c2
2 files changed, 2 insertions, 7 deletions
diff --git a/old-tests/format1/read_pv_t.c b/old-tests/format1/read_pv_t.c
index 991d3835..34cc7486 100644
--- a/old-tests/format1/read_pv_t.c
+++ b/old-tests/format1/read_pv_t.c
@@ -50,12 +50,7 @@ int main(int argc, char **argv)
exit(1);
}
- if (!(dev = dev_cache_get(argv[1], NULL))) {
- fprintf(stderr, "couldn't get device %s\n", argv[1]);
- exit(1);
- }
-
- pv = ios->pv_read(ios, dev);
+ pv = ios->pv_read(ios, argv[1]);
if (!pv) {
fprintf(stderr, "couldn't read pv %s\n", dev->name);
diff --git a/old-tests/format1/read_vg_t.c b/old-tests/format1/read_vg_t.c
index a5c93a2a..ca700b9a 100644
--- a/old-tests/format1/read_vg_t.c
+++ b/old-tests/format1/read_vg_t.c
@@ -31,7 +31,7 @@ int main(int argc, char **argv)
exit(1);
}
- if (!dev_cache_add_dir("/dev/loop")) {
+ if (!dev_cache_add_dir("/dev/")) {
fprintf(stderr, "couldn't add /dev to dir-cache\n");
exit(1);
}