summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgolint.bash6
-rw-r--r--internal/fusefrontend/write_lock.go1
2 files changed, 7 insertions, 0 deletions
diff --git a/golint.bash b/golint.bash
new file mode 100755
index 0000000..4ab0e8c
--- /dev/null
+++ b/golint.bash
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+golint ./... | \
+ grep -v "don't use an underscore in package name" | \
+ grep -v "don't use ALL_CAPS in Go names; use CamelCase" |
+ grep -v "struct field allow_other should be allowOther"
diff --git a/internal/fusefrontend/write_lock.go b/internal/fusefrontend/write_lock.go
index bbab81c..053298d 100644
--- a/internal/fusefrontend/write_lock.go
+++ b/internal/fusefrontend/write_lock.go
@@ -13,6 +13,7 @@ type DevInoStruct struct {
ino uint64
}
+// DevInoFromStat fills a new DevInoStruct with the passed Stat_t info
func DevInoFromStat(st *syscall.Stat_t) DevInoStruct {
// Explicit cast to uint64 to prevent build problems on 32-bit platforms
return DevInoStruct{