mirror of
https://github.com/rclone/rclone.git
synced 2025-01-20 00:52:46 +08:00
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
This commit is contained in:
parent
60d87185e1
commit
3f61869179
|
@ -545,21 +545,25 @@ func (fsys *FS) Fsyncdir(path string, datasync bool, fh uint64) (errc int) {
|
||||||
|
|
||||||
// Setxattr sets extended attributes.
|
// Setxattr sets extended attributes.
|
||||||
func (fsys *FS) Setxattr(path string, name string, value []byte, flags int) (errc int) {
|
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
|
return -fuse.ENOSYS
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getxattr gets extended attributes.
|
// Getxattr gets extended attributes.
|
||||||
func (fsys *FS) Getxattr(path string, name string) (errc int, value []byte) {
|
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
|
return -fuse.ENOSYS, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Removexattr removes extended attributes.
|
// Removexattr removes extended attributes.
|
||||||
func (fsys *FS) Removexattr(path string, name string) (errc int) {
|
func (fsys *FS) Removexattr(path string, name string) (errc int) {
|
||||||
|
defer log.Trace(path, "name=%q", name)("errc=%d", &errc)
|
||||||
return -fuse.ENOSYS
|
return -fuse.ENOSYS
|
||||||
}
|
}
|
||||||
|
|
||||||
// Listxattr lists extended attributes.
|
// Listxattr lists extended attributes.
|
||||||
func (fsys *FS) Listxattr(path string, fill func(name string) bool) (errc int) {
|
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
|
return -fuse.ENOSYS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user