From 1f79bb07f1f603931b0ec65063145a1d784a3964 Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Tue, 25 Aug 2015 09:47:53 +0200 Subject: [PATCH] Add content type rootfs to RBD and extend manual --- PVE/Storage/Plugin.pm | 3 +-- PVE/Storage/RBDPlugin.pm | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index df02a33..8341fd3 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,7 @@ 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. Note: value 'rootdir' is used for Containers, and value 'images' for KVM-Qemu VM's.\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.39.2