summaryrefslogtreecommitdiffstats
path: root/daemon/lvm.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-10 18:51:32 +0200
committerJim Meyering <meyering@redhat.com>2009-08-13 14:45:33 +0200
commit1997858e90da728287ef26a6d01a5766ac914312 (patch)
tree620c80d472b8b0f50cf38e2960ed8253070d12e6 /daemon/lvm.c
parent966dbd977f12b639169a48042b558834f627e5f8 (diff)
downloadlibguestfs-1997858e90da728287ef26a6d01a5766ac914312.tar.gz
libguestfs-1997858e90da728287ef26a6d01a5766ac914312.tar.xz
libguestfs-1997858e90da728287ef26a6d01a5766ac914312.zip
change almost all uses: s/IS_DEVICE/RESOLVE_DEVICE/
Use this command: git grep -l -w IS_DEVICE|xargs perl -pi -e \ 's/\b(?:IS_DEVICE)\b( \(.*?,) (.*?)\)/RESOLVE_DEVICE$1 return $2)/'
Diffstat (limited to 'daemon/lvm.c')
-rw-r--r--daemon/lvm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/daemon/lvm.c b/daemon/lvm.c
index 624dcf34..8f575c49 100644
--- a/daemon/lvm.c
+++ b/daemon/lvm.c
@@ -176,7 +176,7 @@ do_pvcreate (char *device)
char *err;
int r;
- IS_DEVICE (device, -1);
+ RESOLVE_DEVICE (device, return -1);
r = command (NULL, &err,
"/sbin/lvm", "pvcreate", device, NULL);
@@ -202,7 +202,7 @@ do_vgcreate (char *volgroup, char **physvols)
/* Check they are devices and also do device name translation. */
for (i = 0; physvols[i] != NULL; ++i)
- IS_DEVICE (physvols[i], -1);
+ RESOLVE_DEVICE (physvols[i], return -1);
argc = count_strings (physvols) + 3;
argv = malloc (sizeof (char *) * (argc + 1));
@@ -262,7 +262,7 @@ do_lvresize (char *logvol, int mbytes)
int r;
char size[64];
- IS_DEVICE (logvol, -1);
+ RESOLVE_DEVICE (logvol, return -1);
snprintf (size, sizeof size, "%d", mbytes);
@@ -352,7 +352,7 @@ do_lvremove (char *device)
char *err;
int r;
- IS_DEVICE (device, -1);
+ RESOLVE_DEVICE (device, return -1);
r = command (NULL, &err,
"/sbin/lvm", "lvremove", "-f", device, NULL);
@@ -396,7 +396,7 @@ do_pvremove (char *device)
char *err;
int r;
- IS_DEVICE (device, -1);
+ RESOLVE_DEVICE (device, return -1);
r = command (NULL, &err,
"/sbin/lvm", "pvremove", "-ff", device, NULL);
@@ -419,7 +419,7 @@ do_pvresize (char *device)
char *err;
int r;
- IS_DEVICE (device, -1);
+ RESOLVE_DEVICE (device, return -1);
r = command (NULL, &err,
"/sbin/lvm", "pvresize", device, NULL);