aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-08-04 01:21:15 -0700
committerchrislu <chris.lu@gmail.com>2022-08-04 01:21:15 -0700
commit88945d99546dda6a5f92c910aa86ca91e050873a (patch)
tree1779493936df5c09733d9da5f5357f5fa7c65a62
parentfdd85b34f95c789043616640077f4ae79e704c2e (diff)
downloadseaweedfs-88945d99546dda6a5f92c910aa86ca91e050873a.tar.xz
seaweedfs-88945d99546dda6a5f92c910aa86ca91e050873a.zip
mount: do not follow soft link with xattr
-rw-r--r--weed/mount/weedfs_xattr.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/mount/weedfs_xattr.go b/weed/mount/weedfs_xattr.go
index 74ccd9336..e202b77b0 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
}