diff options
Diffstat (limited to 'weed/mount/weedfs_xattr.go')
| -rw-r--r-- | weed/mount/weedfs_xattr.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/weed/mount/weedfs_xattr.go b/weed/mount/weedfs_xattr.go index 09cd2e980..aa95e8c8b 100644 --- a/weed/mount/weedfs_xattr.go +++ b/weed/mount/weedfs_xattr.go @@ -69,6 +69,11 @@ func (wfs *WFS) GetXAttr(cancel <-chan struct{}, header *fuse.InHeader, attr str // Perform a pure replace operation, which fails if the named // attribute does not already exist. func (wfs *WFS) SetXAttr(cancel <-chan struct{}, input *fuse.SetXAttrIn, attr string, data []byte) fuse.Status { + + if wfs.IsOverQuota { + return fuse.EPERM + } + //validate attr name if len(attr) > MAX_XATTR_NAME_SIZE { if runtime.GOOS == "darwin" { |
