Skip to content

Commit

Permalink
use mount config instead of flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmeenkaur committed Apr 24, 2024
1 parent 5f6087d commit c756ada
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ func NewFileSystem(
inodeAttributeCacheTTL: cfg.InodeAttributeCacheTTL,
dirTypeCacheTTL: cfg.DirTypeCacheTTL,
renameDirLimit: cfg.RenameDirLimit,
ignoreInterrupts: cfg.IgnoreInterrupts,
sequentialReadSizeMb: cfg.SequentialReadSizeMb,
uid: cfg.Uid,
gid: cfg.Gid,
Expand Down Expand Up @@ -346,7 +345,6 @@ type fileSystem struct {
inodeAttributeCacheTTL time.Duration
dirTypeCacheTTL time.Duration
renameDirLimit int64
ignoreInterrupts bool
sequentialReadSizeMb int32

// The user and group owning everything in the file system.
Expand Down Expand Up @@ -1315,7 +1313,7 @@ func (fs *fileSystem) StatFS(
}

func (fs *fileSystem) ignoreInterruptsIfFlagIsSet(ctx context.Context) context.Context {
if fs.ignoreInterrupts {
if fs.mountConfig.FileSystemConfig.IgnoreInterrupts {
return context.WithoutCancel(ctx)
}
return ctx
Expand Down

0 comments on commit c756ada

Please sign in to comment.