mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Add more internal logging to fuse syscall tests
PiperOrigin-RevId: 506445741
This commit is contained in:
committed by
gVisor bot
parent
06788d408a
commit
9f8cbc0892
@@ -17,6 +17,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
golog "log"
|
||||
"os"
|
||||
"os/exec"
|
||||
|
||||
@@ -32,8 +33,8 @@ func main() {
|
||||
log.Warningf("could not create loopback root: %v", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
opts := &fuse.MountOptions{DirectMount: true}
|
||||
rawFS := fs.NewNodeFS(loopbackRoot, &fs.Options{})
|
||||
opts := &fuse.MountOptions{DirectMount: true, Debug: true}
|
||||
rawFS := fs.NewNodeFS(loopbackRoot, &fs.Options{Logger: golog.Default()})
|
||||
server, err := fuse.NewServer(rawFS, "/tmp", opts)
|
||||
if err != nil {
|
||||
log.Warningf("could not create fuse server: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user