fsyncdir

package
v0.70.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package fsyncdir syncs a directory's own entries (a new or renamed file appearing in it) to disk, so that change is durable across a crash, not just the changed file's own content -- a file's own fsync does not guarantee its directory entry is persisted. This is shared by database/plugin/metadata/sqlite and database/lifecycle, both of which need this after writing a restored/renamed file into a directory, rather than each keeping its own platform-specific copy to drift out of sync.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync

func Sync(path string) error

Sync opens and fsyncs the directory at path.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL