Commit f77ba8df authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Update for new variable name.

parent eb2f6ad5
...@@ -176,15 +176,16 @@ type FileSystemOptions struct { ...@@ -176,15 +176,16 @@ type FileSystemOptions struct {
AttrTimeout float64 AttrTimeout float64
NegativeTimeout float64 NegativeTimeout float64
// If set, replace all uids with given UID. NewFileSystemOptions() will set // If set, replace all uids with given UID.
// this to the daemon's uid/gid. // NewFileSystemOptions() will set this to the daemon's
// uid/gid.
*Owner *Owner
// If set, drop extra verification bits to handles. This will // If set, use a more portable, but slower inode number
// make inode numbers (exported back to callers) stay within // generation scheme. This will make inode numbers (exported
// int64 (assuming the process uses less than 4G memory.). // back to callers) stay within int32, which is necessary for
// 64-bit inode numbers makes stat() in 32-bit programs fail. // making stat() succeed in 32-bit programs.
SkipCheckHandles bool PortableInodes bool
} }
type MountOptions struct { type MountOptions struct {
......
...@@ -50,7 +50,7 @@ func NewFileSystemConnector(nodeFs NodeFileSystem, opts *FileSystemOptions) (me ...@@ -50,7 +50,7 @@ func NewFileSystemConnector(nodeFs NodeFileSystem, opts *FileSystemOptions) (me
if opts == nil { if opts == nil {
opts = NewFileSystemOptions() opts = NewFileSystemOptions()
} }
me.inodeMap = NewHandleMap(opts.SkipCheckHandles) me.inodeMap = NewHandleMap(opts.PortableInodes)
me.rootNode = newInode(true, nodeFs.Root()) me.rootNode = newInode(true, nodeFs.Root())
// FUSE does not issue a LOOKUP for 1 (obviously), but it does // FUSE does not issue a LOOKUP for 1 (obviously), but it does
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment