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