}
int
-do_pvcreate (const char *device)
+do_pvcreate (char *device)
{
char *err;
int r;
}
int
-do_vgcreate (const char *volgroup, char * const* const physvols)
+do_vgcreate (char *volgroup, char **physvols)
{
char *err;
int r, argc, i;
const char **argv;
- Xphysvols;
+ /* Check they are devices and also do device name translation. */
+ for (i = 0; physvols[i] != NULL; ++i)
+ IS_DEVICE (physvols[i], -1);
argc = count_strings (physvols) + 3;
argv = malloc (sizeof (char *) * (argc + 1));
}
int
-do_lvcreate (const char *logvol, const char *volgroup, int mbytes)
+do_lvcreate (char *logvol, char *volgroup, int mbytes)
{
char *err;
int r;
}
int
-do_lvresize (const char *logvol, int mbytes)
+do_lvresize (char *logvol, int mbytes)
{
char *err;
int r;
}
int
-do_lvremove (const char *device)
+do_lvremove (char *device)
{
char *err;
int r;
}
int
-do_vgremove (const char *device)
+do_vgremove (char *device)
{
char *err;
int r;
- IS_DEVICE (device, -1);
-
r = command (NULL, &err,
"/sbin/lvm", "vgremove", "-f", device, NULL);
if (r == -1) {
}
int
-do_pvremove (const char *device)
+do_pvremove (char *device)
{
char *err;
int r;
}
int
-do_pvresize (const char *device)
+do_pvresize (char *device)
{
char *err;
int r;
}
int
-do_vg_activate (int activate, char * const* const volgroups)
+do_vg_activate (int activate, char **volgroups)
{
char *err;
int r, i, argc;