The kernel doesn't update the atime of program files when it's paging
their content into memory, so fuse2fs shouldn't either. Found by
generic/120.
Cc: <linux-ext4@vger.kernel.org> # v1.43
Fixes: 81cbf1ef4f5dab ("misc: add fuse2fs, a FUSE server for e2fsprogs")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
unsigned long magic;
ext2_ino_t ino;
int open_flags;
+ int check_flags;
};
/* Main program context */
ret = check_inum_access(ff, file->ino, X_OK);
if (ret)
goto out;
+ check = X_OK;
} else
goto out;
}
goto out;
}
+ file->check_flags = check;
fp->fh = (uintptr_t)file;
out:
goto out;
}
- if (fs_writeable(fs)) {
+ if (fh->check_flags != X_OK && fs_writeable(fs)) {
ret = update_atime(fs, fh->ino);
if (ret)
goto out;