Skip to content

Commit

Permalink
addig logs
Browse files Browse the repository at this point in the history
  • Loading branch information
vadlakondaswetha committed Jul 6, 2024
1 parent 732db88 commit f211f2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 2 additions & 0 deletions internal/gcsx/temp_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f211f2a

Please sign in to comment.