Source File
os_f2fs_linux.go
Belonging Package
github.com/ncruces/go-sqlite3/vfs
//go:build amd64 || arm64 || riscv64package vfsimport ()const (// https://godbolt.org/z/1PcK5vea3_F2FS_IOC_START_ATOMIC_WRITE = 62721_F2FS_IOC_COMMIT_ATOMIC_WRITE = 62722_F2FS_IOC_ABORT_ATOMIC_WRITE = 62725_F2FS_IOC_GET_FEATURES = 2147808524 // -2147158772_F2FS_FEATURE_ATOMIC_WRITE = 4)// notestfunc osBatchAtomic( *os.File) bool {, := unix.IoctlGetInt(int(.Fd()), _F2FS_IOC_GET_FEATURES)return == nil && &_F2FS_FEATURE_ATOMIC_WRITE != 0}func ( *vfsFile) () error {return unix.IoctlSetInt(int(.Fd()), _F2FS_IOC_START_ATOMIC_WRITE, 0)}func ( *vfsFile) () error {return unix.IoctlSetInt(int(.Fd()), _F2FS_IOC_COMMIT_ATOMIC_WRITE, 0)}func ( *vfsFile) () error {return unix.IoctlSetInt(int(.Fd()), _F2FS_IOC_ABORT_ATOMIC_WRITE, 0)}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |