Skip to content

Commit

Permalink
F2FS.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncruces committed Apr 16, 2024
1 parent 7bab8bb commit ec609ea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/util/alloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (m *mmappedMemory) Reallocate(size uint64) []byte {
panic(err)
}

// Update commited memory.
// Update committed memory.
m.buf = m.buf[:new]
}
// Limit returned capacity because bytes beyond
Expand Down
5 changes: 5 additions & 0 deletions vfs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ with `EXCLUSIVE` locking mode you should disable connection pooling by calling
You can use [`vfs.SupportsSharedMemory`](https://pkg.go.dev/github.com/ncruces/go-sqlite3/vfs#SupportsSharedMemory)
to check if your platform supports shared memory.

### Batch-Atomic Write

On 64-bit Linux, this module supports [batch-atomic writes](https://sqlite.org/cgi/src/technote/714)
on the F2FS filesystem.

### Build tags

The VFS can be customized with a few build tags:
Expand Down
2 changes: 1 addition & 1 deletion vfs/os_f2fs_linux.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build (amd64 || arm64) && !sqlite3_nosys
//go:build (amd64 || arm64 || riscv64) && !sqlite3_nosys

package vfs

Expand Down
2 changes: 1 addition & 1 deletion vfs/os_std_atomic.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build !linux || !(amd64 || arm64) || sqlite3_nosys
//go:build !linux || !(amd64 || arm64 || riscv64) || sqlite3_nosys

package vfs

Expand Down

0 comments on commit ec609ea

Please sign in to comment.