MCPcopy Create free account
hub / github.com/celer-pkg/celer / reloadNFSExports

Method reloadNFSExports

pkgcache/cache_setup.go:299–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

297}
298
299func (n *NFSServerSetup) reloadNFSExports() error {
300 if output, err := cmd.NewExecutor("", "exportfs", "-ra").ExecuteOutput(); err != nil {
301 return fmt.Errorf("failed to export NFS exports -> %s -> %w", output, err)
302 }
303 color.PrintHint("✔ export NFS exports (exportfs -ra)")
304 return nil
305}
306
307func (n *NFSServerSetup) assignAppendOnlyAttribute() error {
308 args := []string{n.nfsDir, "-type", "d", "-exec", "chattr", "+a", "{}", ";"}

Callers 2

RemoveMethod · 0.95
exportNFSConfigMethod · 0.95

Calls 3

NewExecutorFunction · 0.92
PrintHintFunction · 0.92
ExecuteOutputMethod · 0.80

Tested by

no test coverage detected