public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH manager v3 0/2] fix #6855: ui: storage: add mount options field for nfs, cifs, cephfs
@ 2026-07-30  9:40 Elias Huhsovitz
  2026-07-30  9:40 ` [PATCH manager v3 1/2] fix #6855: ui: storage: add mount options field for nfs amd smb/cifs Elias Huhsovitz
  2026-07-30  9:40 ` [PATCH manager v3 2/2] ui: storage: add mount options field for cephfs Elias Huhsovitz
  0 siblings, 2 replies; 3+ messages in thread
From: Elias Huhsovitz @ 2026-07-30  9:40 UTC (permalink / raw)
  To: pve-devel; +Cc: Elias Huhsovitz

Setting custom mount options for NFS, CIFS and CephFS storage
requires users to use the CLI or edit `/etc/pve/storage.cfg`.
This series adds a new `Mount Options` text field allowing users to 
add custom mount options directly via the web interface. 

The field is located in the `Advanced` section of the edit window.

Bugzilla: https://bugzilla.proxmox.com/show_bug.cgi?id=6855

v2: https://lore.proxmox.com/pve-devel/20260723150316.168440-1-e.huhsovitz@proxmox.com/
v1: https://lore.proxmox.com/pve-devel/20260721121334.115027-1-e.huhsovitz@proxmox.com/

This version extends the UI update to CephFS for the sake of
completion, as the backend API already exposes the options
parameter for it. Additionally, it fixes a logic flaw where the
remount warning hint was incorrectly displayed when adding a
new storage.

Patch 1/2 add mount options field for NFS and CIFS.

Patch 2/2 add mount options field for CephFS.
This was not mentioned in the original bug report, but users have
encountered this issue before:
https://forum.proxmox.com/threads/storage-cephfs-and-multiple-file-systems-passing-options.55018/

Changes v2 -> v3:
- Extend the mount options UI field to CephFS for consistency,
  as the backend API already supports this parameter.
- Fix the dynamic hint logic to only display when editing an
  existing storage and the configuration is actively changed.
  This prevents the hint from showing unnecessarily during
  initial creation.
- Fix a typo in the commit message and harmonize formatting.

Changes v1 -> v2:
- Add a dynamic UI hint when a user changes the mount config
  or NFS version during an edit, informing them that a remount
  is required for changes to take effect.
- Update emptyText placeholders to align with existing Proxmox
  VE UI conventions.
- Add filtering of exact duplicate options (for example,
  "rdma, seal, rdma" becomes "rdma, seal").  Deep semantic
  deduplication (for example, "mount_timeout=60, mount_timeout=70")
  is omitted to preserve opaque mount options where such
  configurations might be desired by the underlying system.

  Note: This was already implemented in the v2 patch, but was
  accidentally omitted from the v1 -> v2 changelog.

Comments that have not been implemented:
- Automatic re-mount:
  Automatically triggering a remount could introduce
  unnecessary complexity and risk disrupting active I/O
  operations if a user modifies options while the storage is
  currently in use by running guests or backup jobs. If users
  need this functionality, it can be added in a separate,
  dedicated patch.

Big Thanks to Max for reviewing the previous versions!

Elias Huhsovitz (2):
  fix #6855: ui: storage: add mount options field for nfs amd smb/cifs
  ui: storage: add mount options field for cephfs

 www/manager6/storage/CIFSEdit.js   |  69 ++++++++++++++++--
 www/manager6/storage/CephFSEdit.js |  59 ++++++++++++++-
 www/manager6/storage/NFSEdit.js    | 112 +++++++++++++++++++++++------
 3 files changed, 210 insertions(+), 30 deletions(-)

-- 
2.47.3





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-30  9:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-30  9:40 [PATCH manager v3 0/2] fix #6855: ui: storage: add mount options field for nfs, cifs, cephfs Elias Huhsovitz
2026-07-30  9:40 ` [PATCH manager v3 1/2] fix #6855: ui: storage: add mount options field for nfs amd smb/cifs Elias Huhsovitz
2026-07-30  9:40 ` [PATCH manager v3 2/2] ui: storage: add mount options field for cephfs Elias Huhsovitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal