[pve-devel] [PATCH storage v2 2/3] enable scripts content type for all directory based storages

Dominik Csapak d.csapak at proxmox.com
Thu Jan 24 12:30:52 CET 2019


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/Storage/CIFSPlugin.pm   | 2 +-
 PVE/Storage/CephFSPlugin.pm | 2 +-
 PVE/Storage/DirPlugin.pm    | 2 +-
 PVE/Storage/NFSPlugin.pm    | 2 +-
 PVE/Storage/Plugin.pm       | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/PVE/Storage/CIFSPlugin.pm b/PVE/Storage/CIFSPlugin.pm
index b3f3d86..512ee98 100644
--- a/PVE/Storage/CIFSPlugin.pm
+++ b/PVE/Storage/CIFSPlugin.pm
@@ -81,7 +81,7 @@ sub type {
 sub plugindata {
     return {
 	content => [ { images => 1, rootdir => 1, vztmpl => 1, iso => 1,
-		   backup => 1}, { images => 1 }],
+		   backup => 1, scripts => 1}, { images => 1 }],
 	format => [ { raw => 1, qcow2 => 1, vmdk => 1 } , 'raw' ],
     };
 }
diff --git a/PVE/Storage/CephFSPlugin.pm b/PVE/Storage/CephFSPlugin.pm
index f9e5acb..0417bad 100644
--- a/PVE/Storage/CephFSPlugin.pm
+++ b/PVE/Storage/CephFSPlugin.pm
@@ -86,7 +86,7 @@ sub type {
 
 sub plugindata {
     return {
-	content => [ { vztmpl => 1, iso => 1, backup => 1},
+	content => [ { vztmpl => 1, iso => 1, backup => 1, scripts => 1},
 		     { backup => 1 }],
     };
 }
diff --git a/PVE/Storage/DirPlugin.pm b/PVE/Storage/DirPlugin.pm
index 5224f4d..d8d7b69 100644
--- a/PVE/Storage/DirPlugin.pm
+++ b/PVE/Storage/DirPlugin.pm
@@ -17,7 +17,7 @@ sub type {
 
 sub plugindata {
     return {
-	content => [ { images => 1, rootdir => 1, vztmpl => 1, iso => 1, backup => 1, none => 1 },
+	content => [ { images => 1, rootdir => 1, vztmpl => 1, iso => 1, backup => 1, scripts => 1, none => 1 },
 		     { images => 1,  rootdir => 1 }],
 	format => [ { raw => 1, qcow2 => 1, vmdk => 1, subvol => 1 } , 'raw' ],
     };
diff --git a/PVE/Storage/NFSPlugin.pm b/PVE/Storage/NFSPlugin.pm
index 5862d82..a1cf830 100644
--- a/PVE/Storage/NFSPlugin.pm
+++ b/PVE/Storage/NFSPlugin.pm
@@ -51,7 +51,7 @@ sub type {
 
 sub plugindata {
     return {
-	content => [ { images => 1, rootdir => 1, vztmpl => 1, iso => 1, backup => 1},
+	content => [ { images => 1, rootdir => 1, vztmpl => 1, iso => 1, backup => 1, scripts => 1 },
 		     { images => 1 }],
 	format => [ { raw => 1, qcow2 => 1, vmdk => 1 } , 'raw' ],
     };
diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm
index 4990255..5f5fd99 100644
--- a/PVE/Storage/Plugin.pm
+++ b/PVE/Storage/Plugin.pm
@@ -326,7 +326,7 @@ sub parse_config {
 	    priority => 0, # force first entry
 	    path => '/var/lib/vz',
 	    maxfiles => 0,
-	    content => { images => 1, rootdir => 1, vztmpl => 1, iso => 1},
+	    content => { images => 1, rootdir => 1, vztmpl => 1, iso => 1, scripts => 1},
 	};
     }
 
-- 
2.11.0





More information about the pve-devel mailing list