|
|
@ -7,6 +7,7 @@ import ( |
|
|
|
"github.com/chrislusf/seaweedfs/weed/glog" |
|
|
|
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb" |
|
|
|
"github.com/hanwen/go-fuse/v2/fuse" |
|
|
|
"syscall" |
|
|
|
"time" |
|
|
|
) |
|
|
|
|
|
|
@ -36,7 +37,7 @@ func (wfs *WFS) Create(cancel <-chan struct{}, in *fuse.CreateIn, name string, o |
|
|
|
func (wfs *WFS) Mknod(cancel <-chan struct{}, in *fuse.MknodIn, name string, out *fuse.EntryOut) (code fuse.Status) { |
|
|
|
|
|
|
|
if wfs.IsOverQuota { |
|
|
|
return fuse.EPERM |
|
|
|
return fuse.Status(syscall.ENOSPC) |
|
|
|
} |
|
|
|
|
|
|
|
if s := checkName(name); s != fuse.OK { |
|
|
|