mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 09:55:18 +00:00
Remove bogus filtering from virDomainGetRootFilesystem
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>
This commit is contained in:
parent
5ba077dcd0
commit
53cbfc2f10
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user