]> git.proxmox.com Git - pve-storage.git/commit
cifs: use empty string instead of / as default directory
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 21 Mar 2023 11:12:40 +0000 (12:12 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 21 Mar 2023 11:38:55 +0000 (12:38 +0100)
commit30c0c70852a756eae9f9c96df0183b01d574a364
tree6a36203a5917f23372dcf47738485067c6ad5e34
parentb2c62272619f03a7873af23381cc1f4c2b8e3216
cifs: use empty string instead of / as default directory

this keeps the mount sources consistent with previous versions
without this patch there is a small regression, which leads to the
storage not being recognized as being mounted on upgrade:
* pvestatd in older version mount the storage with out trailing /
```
//cifsstore/ISO on /mnt/pve/cifsstore type cifs...
```
* the cifs_is_mounted helper does not recognize it as being mounted
(as the source now has a / in the end)
* attempting to mount leads to
```
mount error(16): Device or resource busy
```

noticed after upgrading and having a cifs storage mounted

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
PVE/Storage/CIFSPlugin.pm