[pbs-devel] applied: [PATCH proxmox-backup] api: create_datastore: fix nesting checks

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Nov 27 14:23:59 CET 2024


Am 27.11.24 um 14:05 schrieb Fabian Grünbichler:
> there two kinds of overlap we need to check here:
> - two removable datastores backed by the same device must not have nested
>   relative paths on the device
> - any two datastores must not have nested absolute paths
> 
> Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> ---
>  src/api2/config/datastore.rs | 25 +++++++++++++++++--------
>  1 file changed, 17 insertions(+), 8 deletions(-)
> 
>

applied, thanks!

FWIW, switching the "store" loop variable to something like "existing_store"
and "datastore" to "new_store" would help on reading here.




More information about the pbs-devel mailing list