[pve-devel] [PATCH] Add content type rootfs to RBD and extend manual

Wolfgang Link w.link at proxmox.com
Tue Aug 25 09:47:53 CEST 2015


---
 PVE/Storage/Plugin.pm    | 5 +++--
 PVE/Storage/RBDPlugin.pm | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm
index df02a33..96f33be 100644
--- a/PVE/Storage/Plugin.pm
+++ b/PVE/Storage/Plugin.pm
@@ -16,7 +16,6 @@ cfs_register_file ('storage.cfg',
 		   sub { __PACKAGE__->parse_config(@_); },
 		   sub { __PACKAGE__->write_config(@_); });
 
-# fixme: remove rootdir code (we now use subvols)
 
 my $defaultData = {
     propertyList => {
@@ -24,7 +23,9 @@ my $defaultData = {
 	storage => get_standard_option('pve-storage-id'),
 	nodes => get_standard_option('pve-node-list', { optional => 1 }),
 	content => {
-	    description => "Allowed content types.",
+	    description => "Allowed content types.\n".
+		"rootdir for Container and images for KVM-Qemu VM's.\n".
+		"This is used to restrict which type are allowed on the storage.\n",
 	    type => 'string', format => 'pve-storage-content-list',
 	    optional => 1,
 	},
diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm
index 9dcf420..e600ec1 100644
--- a/PVE/Storage/RBDPlugin.pm
+++ b/PVE/Storage/RBDPlugin.pm
@@ -197,7 +197,7 @@ sub type {
 
 sub plugindata {
     return {
-	content => [ {images => 1}, { images => 1 }],
+	content => [ {images => 1, rootdir => 1}, { images => 1 }],
     };
 }
 
-- 
2.1.4





More information about the pve-devel mailing list