Fix golint warnings
This commit is contained in:
parent
5243cd0e0d
commit
01a078e7c0
|
@ -410,6 +410,7 @@ func (f *File) Flush() fuse.Status {
|
||||||
return fuse.ToStatus(err)
|
return fuse.ToStatus(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fsync FUSE call
|
||||||
func (f *File) Fsync(flags int) (code fuse.Status) {
|
func (f *File) Fsync(flags int) (code fuse.Status) {
|
||||||
f.fdLock.RLock()
|
f.fdLock.RLock()
|
||||||
defer f.fdLock.RUnlock()
|
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())))
|
return fuse.ToStatus(syscall.Fsync(int(f.fd.Fd())))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Chmod FUSE call
|
||||||
func (f *File) Chmod(mode uint32) fuse.Status {
|
func (f *File) Chmod(mode uint32) fuse.Status {
|
||||||
f.fdLock.RLock()
|
f.fdLock.RLock()
|
||||||
defer f.fdLock.RUnlock()
|
defer f.fdLock.RUnlock()
|
||||||
|
@ -427,6 +429,7 @@ func (f *File) Chmod(mode uint32) fuse.Status {
|
||||||
return fuse.ToStatus(err)
|
return fuse.ToStatus(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Chown FUSE call
|
||||||
func (f *File) Chown(uid uint32, gid uint32) fuse.Status {
|
func (f *File) Chown(uid uint32, gid uint32) fuse.Status {
|
||||||
f.fdLock.RLock()
|
f.fdLock.RLock()
|
||||||
defer f.fdLock.RUnlock()
|
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)))
|
return fuse.ToStatus(f.fd.Chown(int(uid), int(gid)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetAttr FUSE call (like stat)
|
||||||
func (f *File) GetAttr(a *fuse.Attr) fuse.Status {
|
func (f *File) GetAttr(a *fuse.Attr) fuse.Status {
|
||||||
f.fdLock.RLock()
|
f.fdLock.RLock()
|
||||||
defer f.fdLock.RUnlock()
|
defer f.fdLock.RUnlock()
|
||||||
|
@ -453,6 +457,7 @@ func (f *File) GetAttr(a *fuse.Attr) fuse.Status {
|
||||||
return fuse.OK
|
return fuse.OK
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Utimens FUSE call
|
||||||
func (f *File) Utimens(a *time.Time, m *time.Time) fuse.Status {
|
func (f *File) Utimens(a *time.Time, m *time.Time) fuse.Status {
|
||||||
f.fdLock.RLock()
|
f.fdLock.RLock()
|
||||||
defer f.fdLock.RUnlock()
|
defer f.fdLock.RUnlock()
|
||||||
|
|
|
@ -9,9 +9,13 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
// TrezorPayloadLen is the length of the payload data passed to Trezor's
|
||||||
|
// CipherKeyValue function.
|
||||||
TrezorPayloadLen = 32
|
TrezorPayloadLen = 32
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Trezor determinitically derives 32 bytes from the payload and the connected
|
||||||
|
// USB security module.
|
||||||
func Trezor(payload []byte) []byte {
|
func Trezor(payload []byte) []byte {
|
||||||
tlog.Fatal.Printf("\"-trezor\" is not implemented yet.")
|
tlog.Fatal.Printf("\"-trezor\" is not implemented yet.")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
|
Loading…
Reference in New Issue