From 3f6186917992a61793a29240705b43562d5a31fb Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 15 Apr 2022 12:11:14 +0100 Subject: [PATCH] cmount: add tracing for *xattr FUSE callbacks See: https://github.com/winfsp/cgofuse/issues/66 See: https://forum.rclone.org/t/cannot-copy-files-to-mounted-azure-storage-windows/30092 --- cmd/cmount/fs.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/cmount/fs.go b/cmd/cmount/fs.go index 553712b16..c097611b7 100644 --- a/cmd/cmount/fs.go +++ b/cmd/cmount/fs.go @@ -545,21 +545,25 @@ func (fsys *FS) Fsyncdir(path string, datasync bool, fh uint64) (errc int) { // Setxattr sets extended attributes. func (fsys *FS) Setxattr(path string, name string, value []byte, flags int) (errc int) { + defer log.Trace(path, "name=%q, value=%q, flags=%d", name, value, flags)("errc=%d", &errc) return -fuse.ENOSYS } // Getxattr gets extended attributes. func (fsys *FS) Getxattr(path string, name string) (errc int, value []byte) { + defer log.Trace(path, "name=%q", name)("errc=%d, value=%q", &errc, &value) return -fuse.ENOSYS, nil } // Removexattr removes extended attributes. func (fsys *FS) Removexattr(path string, name string) (errc int) { + defer log.Trace(path, "name=%q", name)("errc=%d", &errc) return -fuse.ENOSYS } // Listxattr lists extended attributes. func (fsys *FS) Listxattr(path string, fill func(name string) bool) (errc int) { + defer log.Trace(path, "fill=%p", fill)("errc=%d", &errc) return -fuse.ENOSYS }