1. Removed main routine
This commit is contained in:
parent
b181785006
commit
ec39e649c5
11
fuse.go
11
fuse.go
@ -1,7 +1,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.arsenm.dev/logger"
|
|
||||||
"go.arsenm.dev/logger/log"
|
"go.arsenm.dev/logger/log"
|
||||||
"os"
|
"os"
|
||||||
"context"
|
"context"
|
||||||
@ -484,12 +483,7 @@ func (f *ITNode) Rmdir(ctx context.Context, name string) syscall.Errno {
|
|||||||
return f.Unlink(ctx, name)
|
return f.Unlink(ctx, name)
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func startFuse(ctx context.Context, dev *infinitime.Device) error {
|
||||||
// Default logger is JSONLogger going to stderr
|
|
||||||
log.Logger = logger.NewPretty(os.Stdout)
|
|
||||||
}
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
// This is where we'll mount the FS
|
// This is where we'll mount the FS
|
||||||
mntDir := "/tmp/x"
|
mntDir := "/tmp/x"
|
||||||
os.Mkdir(mntDir, 0755)
|
os.Mkdir(mntDir, 0755)
|
||||||
@ -506,10 +500,9 @@ func main() {
|
|||||||
Str("target", mntDir).
|
Str("target", mntDir).
|
||||||
Err(err).
|
Err(err).
|
||||||
Send()
|
Send()
|
||||||
return
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
dev := Device{};
|
|
||||||
log.Info("Mounted on target").
|
log.Info("Mounted on target").
|
||||||
Str("target", mntDir).
|
Str("target", mntDir).
|
||||||
Send()
|
Send()
|
||||||
|
Loading…
Reference in New Issue
Block a user