// NewFS creates an FS func NewFS(config libkbfs.Config, conn *fuse.Conn, debug bool) *FS { log := config.MakeLogger("kbfsfuse") // We need extra depth for errors, so that we can report the line // number for the caller of reportErr, not reportErr itself. errLog := log.CloneWithAddedDepth(1) if debug { // Turn on debugging. TODO: allow a proper log file and // style to be specified. log.Configure("", true, "") errLog.Configure("", true, "") } fs := &FS{config: config, conn: conn, log: log, errLog: errLog} return fs }