[libvirt] [PATCH 3/3] Fix bug in identifying sub-mounts

Eric Blake eblake at redhat.com
Wed Nov 27 22:31:57 UTC 2013


On 11/27/2013 09:31 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> The code for extracting sub-mounts would just do a STRPREFIX
> check on the mount. This was flawed because if there were
> the following mounts
> 
>  /etc/aliases
>  /etc/aliases.db
> 
> and '/etc/aliases' was asked for, it would return both even
> though the latter isn't a sub-mount.
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---

ACK

(hmm, I remember pointing out the STRPREFIX issue on a different patch:
https://www.redhat.com/archives/libvir-list/2013-September/msg00657.html; I
guess that means we have checked for a prefix directory in more than one
instance - worth factoring it into a helper function?)

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131127/a449aeae/attachment-0001.sig>


More information about the libvir-list mailing list