"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
mount: replace deprecated bazil/fuse specific constants with syscall constants
albertony155f4f2e2135
diff --git a/cmd/mount/dir.go b/cmd/mount/dir.goindex b82b52179..775edd4e6 100644--- a/cmd/mount/dir.go+++ b/cmd/mount/dir.go@@ -250,7 +250,7 @@ func (d *Dir) Mknod(ctx context.Context, req *fuse.MknodRequest) (node fusefs.Nodefer log.Trace(d, "name=%v, mode=%d, rdev=%d", req.Name, req.Mode, req.Rdev)("node=%v, err=%v", &node, &err)if req.Rdev != 0 {fs.Errorf(d, "Can't create device node %q", req.Name)- return nil, fuse.EIO+ return nil, fuse.Errno(syscall.EIO)}var cReq = fuse.CreateRequest{Name: req.Name,diff --git a/cmd/mount/fs.go b/cmd/mount/fs.goindex c89110ecc..ee5897e92 100644--- a/cmd/mount/fs.go+++ b/cmd/mount/fs.go@@ -82,11 +82,11 @@ func translateError(err error) error {case vfs.OK:return nilcase vfs.ENOENT, fs.ErrorDirNotFound, fs.ErrorObjectNotFound:- return fuse.ENOENT+ return fuse.Errno(syscall.ENOENT)case vfs.EEXIST, fs.ErrorDirExists:- return fuse.EEXIST+ return fuse.Errno(syscall.EEXIST)case vfs.EPERM, fs.ErrorPermissionDenied:- return fuse.EPERM+ return fuse.Errno(syscall.EPERM)case vfs.ECLOSED:return fuse.Errno(syscall.EBADF)case vfs.ENOTEMPTY: