Re: [PATCH] Remove bogus filtering from virDomainGetRootFilesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 22.03.2013 13:10, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> 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@xxxxxxxxxx>
> ---
>  src/conf/domain_conf.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
> index 0ef67be..4cae0d3 100644
> --- a/src/conf/domain_conf.c
> +++ b/src/conf/domain_conf.c
> @@ -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];
>      }
> 

ACK

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]