Skip to content

Commit 37f8f8a

Browse files
committed
Updates
1 parent 0cc49ff commit 37f8f8a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

HopsFileHandle.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type FileHandle struct {
2424
fileFlags fuse.OpenFlags // flags used to creat the file
2525
tatalBytesRead int64
2626
totalBytesWritten int64
27-
FHID int64 // file handle id. for debugging only
27+
fhID int64 // file handle id. for debugging only
2828
}
2929

3030
// Verify that *FileHandle implements necesary FUSE interfaces
@@ -106,7 +106,7 @@ func NewFileHandle(file *File, existsInDFS bool, flags fuse.OpenFlags) (*FileHan
106106
operation = Open
107107
}
108108

109-
fh := &FileHandle{File: file, fileFlags: flags, FHID: int64(rand.Uint64())}
109+
fh := &FileHandle{File: file, fileFlags: flags, fhID: int64(rand.Uint64())}
110110
if err := checkDiskSpace(); err != nil {
111111
return nil, err
112112
}
@@ -315,7 +315,7 @@ func (fh *FileHandle) Release(_ context.Context, _ *fuse.ReleaseRequest) error {
315315
}
316316

317317
func (fh *FileHandle) logInfo(fields Fields) Fields {
318-
f := Fields{FileHandleID: fh.FHID, Path: fh.File.AbsolutePath()}
318+
f := Fields{FileHandleID: fh.fhID, Path: fh.File.AbsolutePath()}
319319
for k, e := range fields {
320320
f[k] = e
321321
}

main.go

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ func parseArgsAndInitLogger(retryPolicy *RetryPolicy) {
138138
flag.DurationVar(&retryPolicy.MinDelay, "retryMinDelay", 1*time.Second, "minimum delay between retries (note, first retry always happens immediatelly)")
139139
flag.DurationVar(&retryPolicy.MaxDelay, "retryMaxDelay", 60*time.Second, "maximum delay between retries")
140140
allowedPrefixesString = flag.String("allowedPrefixes", "*", "Comma-separated list of allowed path prefixes on the remote file system, if specified the mount point will expose access to those prefixes only")
141+
//FIXME automatically expanding zip files is currently broken.
141142
// expandZips = flag.Bool("expandZips", false, "Enables automatic expansion of ZIP archives")
142143
readOnly = flag.Bool("readOnly", false, "Enables mount with readonly")
143144
flag.StringVar(&logLevel, "logLevel", "error", "logs to be printed. error, warn, info, debug, trace")

0 commit comments

Comments
 (0)