Files
go-fuse/fs/mem_linux.go
Han-Wen Nienhuys 60124bc45a fs: fix compilation on Darwin/FreeBSD
Change-Id: Id000000058c4bc7dd6e15caebeb42f62abd32a52
2025-06-11 08:28:20 +02:00

12 lines
292 B
Go

// Copyright 2025 the Go-FUSE Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package fs
import "golang.org/x/sys/unix"
func keepSizeMode(mode uint32) bool {
return mode&unix.FALLOC_FL_KEEP_SIZE != 0
}