char *err;
int r;
- RESOLVE_DEVICE (device, return -1);
-
r = command (NULL, &err,
"/sbin/lvm", "pvcreate", device, NULL);
if (r == -1) {
char *err;
int r;
- RESOLVE_DEVICE (device, return -1);
-
r = command (NULL, &err,
"/sbin/lvm", "lvremove", "-f", device, NULL);
if (r == -1) {
char *err;
int r;
- RESOLVE_DEVICE (device, return -1);
-
r = command (NULL, &err,
"/sbin/lvm", "pvremove", "-ff", device, NULL);
if (r == -1) {
char *err;
int r;
- RESOLVE_DEVICE (device, return -1);
-
r = command (NULL, &err,
"/sbin/lvm", "pvresize", device, NULL);
if (r == -1) {