proxmox-backup/pbs-datastore
Hannes Laimer cd933e9d69 chunk_store: fix problem with permission checking
Permissions are stored in the lower 9 bits (rwxrwxrwx),
so we have to mask `st_mode` with 0o777.
The datastore root dir is created with 755, the `.chunks` dir and its
contents with 750 and the `.lock` file with 644, this changes the
expected permissions accordingly.

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
Fixes: 6e101ff757 ("fix #5439: allow to reuse existing datastore")
Reviewed-By: Gabriel Goller <g.goller@proxmox.com>
2024-11-22 08:49:32 +01:00
..
examples pbs-datastore: clippy fixes 2023-05-17 17:43:17 +02:00
src chunk_store: fix problem with permission checking 2024-11-22 08:49:32 +01:00
Cargo.toml datastore: remove lazy_static dependency 2024-08-14 12:08:01 +02:00