mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-12-20 03:59:49 +08:00
mount: quota adjust error type to be syscall.ENOSPC
This commit is contained in:
@@ -3,6 +3,7 @@ package mount
|
||||
import (
|
||||
"github.com/hanwen/go-fuse/v2/fuse"
|
||||
"net/http"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
/**
|
||||
@@ -34,7 +35,7 @@ import (
|
||||
func (wfs *WFS) Write(cancel <-chan struct{}, in *fuse.WriteIn, data []byte) (written uint32, code fuse.Status) {
|
||||
|
||||
if wfs.IsOverQuota {
|
||||
return 0, fuse.EPERM
|
||||
return 0, fuse.Status(syscall.ENOSPC)
|
||||
}
|
||||
|
||||
fh := wfs.GetHandle(FileHandleId(in.Fh))
|
||||
|
||||
Reference in New Issue
Block a user