diff options
author | Jakob Unterwurzacher | 2018-07-01 22:00:06 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2018-07-01 22:00:06 +0200 |
commit | 01a078e7c0d75b0564282fc7613944be858a522f (patch) | |
tree | c6637e9ad666c3dd9fa4d1b931d4bb74c2b2c0f1 /internal/fusefrontend/file.go | |
parent | 5243cd0e0d90c8a8aca735e06302d5a9d891a8a6 (diff) |
Fix golint warnings
Diffstat (limited to 'internal/fusefrontend/file.go')
-rw-r--r-- | internal/fusefrontend/file.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/fusefrontend/file.go b/internal/fusefrontend/file.go index bcf4b83..b056dc2 100644 --- a/internal/fusefrontend/file.go +++ b/internal/fusefrontend/file.go @@ -410,6 +410,7 @@ func (f *File) Flush() fuse.Status { return fuse.ToStatus(err) } +// Fsync FUSE call func (f *File) Fsync(flags int) (code fuse.Status) { f.fdLock.RLock() defer f.fdLock.RUnlock() @@ -417,6 +418,7 @@ func (f *File) Fsync(flags int) (code fuse.Status) { return fuse.ToStatus(syscall.Fsync(int(f.fd.Fd()))) } +// Chmod FUSE call func (f *File) Chmod(mode uint32) fuse.Status { f.fdLock.RLock() defer f.fdLock.RUnlock() @@ -427,6 +429,7 @@ func (f *File) Chmod(mode uint32) fuse.Status { return fuse.ToStatus(err) } +// Chown FUSE call func (f *File) Chown(uid uint32, gid uint32) fuse.Status { f.fdLock.RLock() defer f.fdLock.RUnlock() @@ -434,6 +437,7 @@ func (f *File) Chown(uid uint32, gid uint32) fuse.Status { return fuse.ToStatus(f.fd.Chown(int(uid), int(gid))) } +// GetAttr FUSE call (like stat) func (f *File) GetAttr(a *fuse.Attr) fuse.Status { f.fdLock.RLock() defer f.fdLock.RUnlock() @@ -453,6 +457,7 @@ func (f *File) GetAttr(a *fuse.Attr) fuse.Status { return fuse.OK } +// Utimens FUSE call func (f *File) Utimens(a *time.Time, m *time.Time) fuse.Status { f.fdLock.RLock() defer f.fdLock.RUnlock() |