From f211f2a0b6449ccd82d2a4b8e091adbec59d99e1 Mon Sep 17 00:00:00 2001 From: vadlakondaswetha Date: Sat, 6 Jul 2024 17:47:33 +0000 Subject: [PATCH] addig logs --- internal/fs/fs.go | 1 + internal/gcsx/temp_file.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/internal/fs/fs.go b/internal/fs/fs.go index fce7469413..6853628f5b 100644 --- a/internal/fs/fs.go +++ b/internal/fs/fs.go @@ -1659,6 +1659,7 @@ func (fs *fileSystem) CreateFile( if fs.mountConfig.CreateEmptyFile { child, err = fs.createFile(ctx, op.Parent, op.Name, op.Mode) } else { + fmt.Println("creating local file") child, err = fs.createLocalFile(op.Parent, op.Name) } diff --git a/internal/gcsx/temp_file.go b/internal/gcsx/temp_file.go index a63da75c9a..2c31fcef67 100644 --- a/internal/gcsx/temp_file.go +++ b/internal/gcsx/temp_file.go @@ -88,6 +88,8 @@ func NewTempFile( prefix := dir + "gcsfuse" name := prefix + strconv.Itoa(rand.Int()) + fmt.Println("printing name") + fmt.Print(name) f, err := os.OpenFile(name, os.O_RDWR|os.O_CREATE|os.O_EXCL|syscall.O_DIRECT, 0600) //f, err := fsutil.AnonymousFile(dir) if err != nil {