[pbs-devel] [PATCH proxmox-backup] api/ui: allow zstd compression for new zpools

Dominik Csapak d.csapak at proxmox.com
Fri Jul 30 13:39:34 CEST 2021


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/api2/node/disks/zfs.rs | 2 ++
 www/window/ZFSCreate.js    | 1 +
 2 files changed, 3 insertions(+)

diff --git a/src/api2/node/disks/zfs.rs b/src/api2/node/disks/zfs.rs
index 89f72172..90ba52ad 100644
--- a/src/api2/node/disks/zfs.rs
+++ b/src/api2/node/disks/zfs.rs
@@ -63,6 +63,8 @@ pub enum ZfsCompressionType {
     Lzjb,
     /// ZLE
     Zle,
+    /// ZStd
+    ZStd,
     /// Enable compression using the default algorithm.
     On,
     /// Disable compression.
diff --git a/www/window/ZFSCreate.js b/www/window/ZFSCreate.js
index d89e53bc..28b90d82 100644
--- a/www/window/ZFSCreate.js
+++ b/www/window/ZFSCreate.js
@@ -60,6 +60,7 @@ Ext.define('PBS.window.CreateZFS', {
 			['lz4', 'lz4'],
 			['lzjb', 'lzjb'],
 			['zle', 'zle'],
+			['zstd', 'zstd'],
 		    ],
 		},
 		{
-- 
2.30.2






More information about the pbs-devel mailing list