mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Feature #1727: VM::set_auth_request adds size to each disk
This commit is contained in:
1 parent
2ccfca4bd4
commit
edd210a889
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user