Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

mount: do not follow soft link with xattr

chrislu88945d99546d
diff --git a/weed/mount/weedfs_xattr.go b/weed/mount/weedfs_xattr.go
index 74ccd93363..e202b77b0f 100644
--- a/weed/mount/weedfs_xattr.go
+++ b/weed/mount/weedfs_xattr.go
@@ -36,7 +36,7 @@ func (wfs *WFS) GetXAttr(cancel <-chan struct{}, header *fuse.InHeader, attr str
return 0, fuse.EINVAL
}
- _, _, entry, _, status := wfs.maybeReadEntry(header.NodeId, true)
+ _, _, entry, _, status := wfs.maybeReadEntry(header.NodeId, false)
if status != fuse.OK {
return 0, status
}
@@ -102,7 +102,7 @@ func (wfs *WFS) SetXAttr(cancel <-chan struct{}, input *fuse.SetXAttrIn, attr st
}
}
- path, fh, entry, _, status := wfs.maybeReadEntry(input.NodeId, true)
+ path, fh, entry, _, status := wfs.maybeReadEntry(input.NodeId, false)
if status != fuse.OK {
return status
}
@@ -143,7 +143,7 @@ func (wfs *WFS) ListXAttr(cancel <-chan struct{}, header *fuse.InHeader, dest []
return 0, fuse.Status(syscall.ENOTSUP)
}
- _, _, entry, _, status := wfs.maybeReadEntry(header.NodeId, true)
+ _, _, entry, _, status := wfs.maybeReadEntry(header.NodeId, false)
if status != fuse.OK {
return 0, status
}
@@ -180,7 +180,7 @@ func (wfs *WFS) RemoveXAttr(cancel <-chan struct{}, header *fuse.InHeader, attr
if len(attr) == 0 {
return fuse.EINVAL
}
- path, fh, entry, _, status := wfs.maybeReadEntry(header.NodeId, true)
+ path, fh, entry, _, status := wfs.maybeReadEntry(header.NodeId, false)
if status != fuse.OK {
return status
}