X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fdevsparts.c;fp=daemon%2Fdevsparts.c;h=4c7a643c3ad8ae02b5b6695810c4f4f34f5eb34e;hp=83e4bb9d520f9357e1ed3a2c1c909964428a0024;hb=4513f2ec7b6aa843005ba886cdd1747b6ff00915;hpb=202e11543ead0d21a8485879654c927ec95ea7f0 diff --git a/daemon/devsparts.c b/daemon/devsparts.c index 83e4bb9..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';