[libvirt] [PATCH] Make check for /dev/loop device names stricter to avoid /dev/loop-control

Eric Blake eblake at redhat.com
Fri Aug 9 17:23:29 UTC 2013


On 08/09/2013 10:45 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> Recentish (2011) kernels introduced a new device called /dev/loop-control,
> which causes libvirt's detection of loop devices to get confused
> since it only checks for a prefix of 'loop'. Also check that the
> next character is a digit
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  src/util/virfile.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

ACK.

-- 
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/20130809/d9631682/attachment-0001.sig>


More information about the libvir-list mailing list