]> xenbits.xensource.com Git - libvirt.git/commitdiff
Remove bogus filtering from virDomainGetRootFilesystem
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 22 Mar 2013 12:09:39 +0000 (12:09 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 22 Mar 2013 17:27:01 +0000 (17:27 +0000)
The virDomainGetRootFilesystem was only returning filesystems
with type=mount. This is bogus - any type of filesystem is
valid as the root, if dst=/.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/conf/domain_conf.c

index 0ef67beba96aca382c9e99580ddd4077f0e2834a..4cae0d3525cd76c88a7ecbe581c351c6d81ec5cf 100644 (file)
@@ -15635,9 +15635,6 @@ virDomainGetRootFilesystem(virDomainDefPtr def)
     int i;
 
     for (i = 0 ; i < def->nfss ; i++) {
-        if (def->fss[i]->type != VIR_DOMAIN_FS_TYPE_MOUNT)
-            continue;
-
         if (STREQ(def->fss[i]->dst, "/"))
             return def->fss[i];
     }