shrinker

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShrinkerSt

type ShrinkerSt struct {
	// contains filtered or unexported fields
}

func MkShrinkerSt

func MkShrinkerSt(st *fstxn.FsState) *ShrinkerSt

func (*ShrinkerSt) Crash

func (shrinker *ShrinkerSt) Crash()

func (*ShrinkerSt) DoShrink

func (shrinkst *ShrinkerSt) DoShrink(inum common.Inum) bool

If caller changes file size and shrinking is in progress (because an earlier call truncated the file), then help/wait with/for shrinking. Also, called by shrinker.

func (*ShrinkerSt) Shutdown

func (shrinker *ShrinkerSt) Shutdown()

func (*ShrinkerSt) StartShrinker

func (shrinkst *ShrinkerSt) StartShrinker(inum common.Inum)

for large files, start a separate thread

Jump to

Keyboard shortcuts

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