"os"
"path/filepath"
+ "syscall"
+
"golang.org/x/sys/unix"
)
Spool string
LogPath string
+ UmaskForce *int
Quiet bool
Debug bool
NotifyFile *FromToJSON
NotifyFreq *FromToJSON
+ NotifyExec map[string]*FromToJSON
}
func (ctx *Ctx) FindNode(id string) (*Node, error) {
}
return int64(s.Bavail)*int64(s.Bsize) > want
}
+
+func (ctx *Ctx) Umask() {
+ if ctx.UmaskForce != nil {
+ syscall.Umask(*ctx.UmaskForce)
+ }
+}