summaryrefslogtreecommitdiff
path: root/internal/syscallcompat
diff options
context:
space:
mode:
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