Skip to content

Commit 42bf9f7

Browse files
authored
DEVEX-1399 noatime (#72)
* Mount with noatime * Fix atime to be same as mtime instead of default * Bump to v0.25.0 for release
1 parent 317a77d commit 42bf9f7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cli/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ func fsDaemon(
119119

120120
logger.Printf("starting fsDaemon")
121121
mountOptions := make(map[string]string)
122+
mountOptions["noatime"] = ""
122123

123124
user := getUser()
124125
if user.Uid == "0" {

util.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const (
2929
MaxDirSize = 255 * 1000
3030
MaxNumFileHandles = 1000 * 1000
3131
NumRetriesDefault = 10
32-
Version = "v0.24.3"
32+
Version = "v0.25.0"
3333
)
3434
const (
3535
InodeInvalid = 0
@@ -102,6 +102,7 @@ type Dir struct {
102102
func (d Dir) GetAttrs() (a fuseops.InodeAttributes) {
103103
a.Size = 4096
104104
a.Nlink = 1
105+
a.Atime = d.Mtime
105106
a.Mtime = d.Mtime
106107
a.Ctime = d.Ctime
107108
a.Mode = os.ModeDir | d.Mode
@@ -171,6 +172,7 @@ type File struct {
171172
func (f File) GetAttrs() (a fuseops.InodeAttributes) {
172173
a.Size = uint64(f.Size)
173174
a.Nlink = 1
175+
a.Atime = f.Mtime
174176
a.Mtime = f.Mtime
175177
a.Ctime = f.Ctime
176178
a.Mode = f.Mode

0 commit comments

Comments
 (0)