From edd210a889540bfafea993cfdb21edbfce081473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Mon, 20 Jul 2015 15:44:01 +0200 Subject: [PATCH] Feature #1727: VM::set_auth_request adds size to each disk --- src/image/ImagePool.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/image/ImagePool.cc b/src/image/ImagePool.cc index 0f897e539e..ff370d5b4b 100644 --- a/src/image/ImagePool.cc +++ b/src/image/ImagePool.cc @@ -504,6 +504,9 @@ void ImagePool::authorize_disk(VectorAttribute * disk,int uid, AuthRequest * ar) img->get_permissions(perm); + // TODO: we could have img->authorize_disk, to add only SIZE and CLONE attrs. + img->disk_attribute(disk, img_type, dev_prefix, inherit_image_attrs); + img->unlock(); ar->add_auth(AuthRequest::USE, perm);