[pve-devel] [PATCH v4 qemu-server 09/18] parse_backup_hints: add comment for root shortcut and fix typos

Oguz Bektas o.bektas at proxmox.com
Thu Jun 2 09:24:41 CEST 2022


Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
 PVE/QemuServer.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index e9aa248..05b2f29 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -6290,11 +6290,11 @@ my $restore_cleanup_oldconf = sub {
 
 # Helper to parse vzdump backup device hints
 #
-# $rpcenv: Environment, used to ckeck storage permissions
+# $rpcenv: Environment, used to check storage permissions
 # $user: User ID, to check storage permissions
 # $storecfg: Storage configuration
 # $fh: the file handle for reading the configuration
-# $devinfo: should contain device sizes for all backu-up'ed devices
+# $devinfo: should contain device sizes for all backed up devices
 # $options: backup options (pool, default storage)
 #
 # Return: $virtdev_hash, updates $devinfo (add devname, virtdev, format, storeid)
@@ -6306,7 +6306,7 @@ my $parse_backup_hints = sub {
 	die "Content type 'images' is not available on storage '$storeid'\n"
 	    if !$scfg->{content}->{images};
 	$rpcenv->check($user, "/storage/$storeid", ['Datastore.AllocateSpace'])
-	    if $user ne 'root at pam';
+	    if $user ne 'root at pam'; # shortcut for root at pam
     };
 
     my $virtdev_hash = {};
-- 
2.30.2





More information about the pve-devel mailing list