[pbs-devel] applied: Re: [PATCH proxmox-backup] datastore: chown base dir on creation

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Jul 9 21:32:21 CEST 2020


On 09.07.20 18:15, Stoiko Ivanov wrote:
> When creating a new datastore the basedir is only owned by the backup
> user if it did not exist beforehand (create_path chowns only if it
> creates the directory), and returns false if it did not create the
> directory).
> 
> This improves the experience when adding a new datastore on a fresh
> disk or existing directory (not owned by backup) - backups/pulls can
> be run instead of terminating with EPERM.
> 
> Tested on my local testinstall with a new disk, and a existing directory:
> 
> Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
> ---
>  src/backup/chunk_store.rs | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
>

applied, thanks!





More information about the pbs-devel mailing list