[pve-devel] [PATCH manager v1 11/11] directory mapping: add live-migration-method option for virtiofs
Markus Frank
m.frank at proxmox.com
Mon Oct 20 14:17:46 CEST 2025
Display a warning indicating that this feature is experimental.
Signed-off-by: Markus Frank <m.frank at proxmox.com>
---
www/manager6/dc/DirMapView.js | 8 ++++++++
www/manager6/window/DirMapEdit.js | 23 +++++++++++++++++++++++
2 files changed, 31 insertions(+)
diff --git a/www/manager6/dc/DirMapView.js b/www/manager6/dc/DirMapView.js
index f0dfe28f..26f938e9 100644
--- a/www/manager6/dc/DirMapView.js
+++ b/www/manager6/dc/DirMapView.js
@@ -26,6 +26,14 @@ Ext.define('PVE.dc.DirMapView', {
dataIndex: 'text',
width: 200,
},
+ {
+ header: gettext('Live Migration Method'),
+ dataIndex: 'live-migration',
+ renderer: function (value, _meta, record) {
+ return Ext.String.htmlEncode(value ?? record.data['live-migration-method']);
+ },
+ width: 150,
+ },
{
header: gettext('Comment'),
dataIndex: 'description',
diff --git a/www/manager6/window/DirMapEdit.js b/www/manager6/window/DirMapEdit.js
index 841ff1fe..8efe4243 100644
--- a/www/manager6/window/DirMapEdit.js
+++ b/www/manager6/window/DirMapEdit.js
@@ -39,8 +39,10 @@ Ext.define('PVE.window.DirMapEditWindow', {
let name = values.name;
let description = values.description;
+ let liveMigration = values["live-migration-method"];
let deletes = values.delete;
+ delete values["live-migration-method"];
delete values.description;
delete values.name;
delete values.delete;
@@ -69,6 +71,9 @@ Ext.define('PVE.window.DirMapEditWindow', {
if (description) {
values.description = description;
}
+ if (liveMigration) {
+ values["live-migration-method"] = liveMigration;
+ }
if (deletes && !view.isCreate) {
values.delete = deletes;
}
@@ -181,6 +186,24 @@ Ext.define('PVE.window.DirMapEditWindow', {
},
],
},
+ {
+ xtype: 'proxmoxKVComboBox',
+ fieldLabel: `<i class="fa fa-exclamation-triangle warning"></i> ${gettext('Experimental')}:
+ ${gettext('Live Migration Method')}`,
+ reference: 'live-migration-method',
+ name: 'live-migration-method',
+ value: '__default__',
+ comboItems: [
+ ['__default__', Proxmox.Utils.defaultText + ' (' + Proxmox.Utils.disabledText + ')'],
+ ['find-paths', 'find-paths'],
+ ['file-handles', 'file-handles'],
+ ],
+ cbind: {
+ deleteEmpty: '{!isCreate}',
+ disabled: '{hideComment}',
+ hidden: '{hideComment}',
+ },
+ },
],
columnB: [
--
2.47.3
More information about the pve-devel
mailing list