X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fdevsparts.c;h=4c7a643c3ad8ae02b5b6695810c4f4f34f5eb34e;hp=21854b5c3a532b84ac042589c03ecb8ef3ec20b5;hb=4513f2ec7b6aa843005ba886cdd1747b6ff00915;hpb=5cd39c83e23eb300d1bdfa806902a31b409ff420 diff --git a/daemon/devsparts.c b/daemon/devsparts.c index 21854b5..4c7a643 100644 --- a/daemon/devsparts.c +++ b/daemon/devsparts.c @@ -46,7 +46,8 @@ do_list_devices (void) while ((d = readdir (dir)) != NULL) { if (strncmp (d->d_name, "sd", 2) == 0 || - strncmp (d->d_name, "hd", 2) == 0) { + strncmp (d->d_name, "hd", 2) == 0 || + strncmp (d->d_name, "vd", 2) == 0) { snprintf (buf, sizeof buf, "/dev/%s", d->d_name); if (add_string (&r, &size, &alloc, buf) == -1) { closedir (dir); @@ -87,7 +88,8 @@ do_list_partitions (void) while ((d = readdir (dir)) != NULL) { if (strncmp (d->d_name, "sd", 2) == 0 || - strncmp (d->d_name, "hd", 2) == 0) { + strncmp (d->d_name, "hd", 2) == 0 || + strncmp (d->d_name, "vd", 2) == 0) { strncpy (devname, d->d_name, sizeof devname); devname[sizeof devname - 1] = '\0'; @@ -135,7 +137,7 @@ do_list_partitions (void) } int -do_mkfs (const char *fstype, const char *device) +do_mkfs (char *fstype, char *device) { char *err; int r;