Add content type rootfs to RBD and extend manual
This commit is contained in:
committed by
Dietmar Maurer
parent
99d4c75346
commit
1f79bb07f1
@ -16,7 +16,6 @@ cfs_register_file ('storage.cfg',
|
|||||||
sub { __PACKAGE__->parse_config(@_); },
|
sub { __PACKAGE__->parse_config(@_); },
|
||||||
sub { __PACKAGE__->write_config(@_); });
|
sub { __PACKAGE__->write_config(@_); });
|
||||||
|
|
||||||
# fixme: remove rootdir code (we now use subvols)
|
|
||||||
|
|
||||||
my $defaultData = {
|
my $defaultData = {
|
||||||
propertyList => {
|
propertyList => {
|
||||||
@ -24,7 +23,7 @@ my $defaultData = {
|
|||||||
storage => get_standard_option('pve-storage-id'),
|
storage => get_standard_option('pve-storage-id'),
|
||||||
nodes => get_standard_option('pve-node-list', { optional => 1 }),
|
nodes => get_standard_option('pve-node-list', { optional => 1 }),
|
||||||
content => {
|
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',
|
type => 'string', format => 'pve-storage-content-list',
|
||||||
optional => 1,
|
optional => 1,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -197,7 +197,7 @@ sub type {
|
|||||||
|
|
||||||
sub plugindata {
|
sub plugindata {
|
||||||
return {
|
return {
|
||||||
content => [ {images => 1}, { images => 1 }],
|
content => [ {images => 1, rootdir => 1}, { images => 1 }],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user