mount: quota adjust error type to be syscall.ENOSPC
This commit is contained in:
@@ -132,7 +132,7 @@ const (
|
||||
|
||||
func (wfs *WFS) Rename(cancel <-chan struct{}, in *fuse.RenameIn, oldName string, newName string) (code fuse.Status) {
|
||||
if wfs.IsOverQuota {
|
||||
return fuse.EPERM
|
||||
return fuse.Status(syscall.ENOSPC)
|
||||
}
|
||||
|
||||
if s := checkName(newName); s != fuse.OK {
|
||||
|
||||
Reference in New Issue
Block a user