Documentation
¶
Overview ¶
Package simkit is the seeded edit script of the overlay model: random operations applied to a model of the merged view and to an in-memory upper directory that follows the overlayfs rules for redirect_dir and metacopy. A test of another implementation replays each operation on it and compares the dirty set.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BaseLeaves = []string{"a/a", "a/b*", "a/c/a", "a/c/b@", "b/a", "b/b/a*", "b/b/b", "c", "d/a", "d/b/a", "e@"}
BaseLeaves is the base tree of every script: "p" is a file, "p*" an executable and "p@" a symlink.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
Base is a BaseTree over a leaf list: "p" is a file, "p*" an executable, "p@" a symlink.
type Sim ¶
sim applies operations to a model of the merged view and to an in-memory upper directory that follows the overlayfs rules for redirect_dir and metacopy.
func (*Sim) Check ¶
check requires that the entries of upperdir.Scan, applied to the base leaves, give the leaves of the merged view. Check requires that the dirty set of the upper, applied to the base leaves, gives the merged view.