[pve-devel] [PATCH pve-container 7/9] implement auto completion for disks
Wolfgang Link
w.link at proxmox.com
Wed Nov 18 09:30:04 CET 2015
---
src/PVE/LXC.pm | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index d0727bf..66fb278 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -2648,6 +2648,7 @@ sub userns_command {
return ['lxc-usernsexec', (map { ('-m', join(':', @$_)) } @$id_map), '--'];
}
return [];
+}
sub complete_storage {
@@ -2665,4 +2666,15 @@ sub complete_storage {
return $res;
}
+sub complete_disk {
+
+ my $res = [];
+ push @$res, 'rootfs';
+
+ for (my $i = 0; $i < $MAX_MOUNT_POINTS; $i++) {
+ push @$res, "mp$i";
+ }
+
+ return $res;
+}
1;
--
2.1.4
More information about the pve-devel
mailing list