ouisync icon indicating copy to clipboard operation
ouisync copied to clipboard

cp -a into mounted ouisync repo partially fails

Open Juul opened this issue 1 year ago • 1 comments

When running cp -a foo ~/ouisync/repo, where ~/ouisync/repo is a mounted ouisync repo, and foo is a directory with contents I get an empty foo directory inside ~/ouisync/repo which is then synced to other peers and I get the following error:

cp: setting permissions for '/home/<user>/ouisync/phone/foo': Operation not supported

To compare, using cp -a into a regular filesystem that doesn't support *nix permissions (FAT32) results in a successful recursive copy with the following output:

cp -a foo /mnt/tmp/
cp: failed to preserve ownership for '/mnt/tmp/foo/bar/baz': Operation not permitted
cp: failed to preserve ownership for '/mnt/tmp/foo/bar': Operation not permitted
cp: failed to preserve ownership for '/mnt/tmp/foo': Operation not permitted

This is what I would expect from ouisync. It is not unusual for programs, gui or otherwise, to default to preserving permissions on copy so this effectively stops some programs from copying data into a ouisync mount.

Juul avatar Jul 11 '24 01:07 Juul

https://redmine.equalit.ie/issues/31615

IvanaBlzvc avatar May 08 '25 09:05 IvanaBlzvc