mesh/merge-gate head d237dee4c9e3 merged into trunk cd13f7726ef0 — pass: builds mesh-host → ace, g14, novox, shanks; no bus step; every machine composes wi…
mesh/repo-check head d237dee4c9e3 merged into trunk cd13f7726ef0 — fail: its merge-check.sh failed: --- FAIL: TestAMoveOutDirectoryKeepsOnlyWhatItKnows (0.…
mesh/delivery superseded: a newer head of the same pull request
A directory or archive resource carries `unknown` (move-out, module, program) and `knows`. For move-out under a home, every look moves each path the declaration does not know into ~/.local/state/mesh-moved/<module>/<time>/, the list written before each move, without following a link, a young path waiting, a socket or pipe left and reported, nothing made when nothing moved, and another file system refused. Reviewed in two rounds.
20 lines
385 B
Go
20 lines
385 B
Go
//go:build !linux
|
|
|
|
package apply
|
|
|
|
import "os"
|
|
|
|
var deviceOf = func(string) (uint64, error) { return 0, nil }
|
|
|
|
func ownerIDs(string) (int, int, bool) { return 0, 0, false }
|
|
|
|
func renameUnder(home, from, to string) error {
|
|
if err := refuseLinksUnderHome(from); err != nil {
|
|
return err
|
|
}
|
|
if err := refuseLinksUnderHome(to); err != nil {
|
|
return err
|
|
}
|
|
return os.Rename(from, to)
|
|
}
|