summaryrefslogtreecommitdiff
path: root/internal/syscallcompat
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-10-04 23:30:05 +0200
committerJakob Unterwurzacher2016-10-04 23:30:05 +0200
commita4956fa6bfde27c21f70e8577ebb586ccc9a3691 (patch)
treebf4cf674dee6bcb3287755cc4d15807e5c518d4e /internal/syscallcompat
parentb764917cd5c1b1d61b8ce08e7af0b29793fbbb80 (diff)
A few more lint fixes
Diffstat (limited to 'internal/syscallcompat')
-rw-r--r--internal/syscallcompat/sys_linux.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/syscallcompat/sys_linux.go b/internal/syscallcompat/sys_linux.go
index c9f6ee0..93516f3 100644
--- a/internal/syscallcompat/sys_linux.go
+++ b/internal/syscallcompat/sys_linux.go
@@ -8,7 +8,7 @@ import (
"github.com/rfjakob/gocryptfs/internal/tlog"
)
-const FALLOC_FL_KEEP_SIZE = 0x01
+const _FALLOC_FL_KEEP_SIZE = 0x01
var preallocWarn sync.Once
@@ -17,7 +17,7 @@ var preallocWarn sync.Once
// ciphertext block (that would corrupt the block).
func EnospcPrealloc(fd int, off int64, len int64) (err error) {
for {
- err = syscall.Fallocate(fd, FALLOC_FL_KEEP_SIZE, off, len)
+ err = syscall.Fallocate(fd, _FALLOC_FL_KEEP_SIZE, off, len)
if err == syscall.EINTR {
// fallocate, like many syscalls, can return EINTR. This is not an
// error and just signifies that the operation was interrupted by a