Project

General

Profile

Actions

Bug #5379

closed

modifying a mmap()-ed file does not update its timestamps

Added by Andriy Gapon over 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2014-12-02
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

The following is based on a review of the illumos code and on a similar problem reported for FreeBSD where the relevant code is different.

Looking at this block of code http://src.illumos.org/source/xref/illumos-gate/usr/src/uts/common/fs/zfs/zfs_vnops.c#4187 I see code to set up an sa_bulk_attr_t object, I see code to set up mtime and ctime values, but I do not see code to actually apply the attributes...
I would expect there to be a call to sa_bulk_update(), there is such a call in zfs_write() for instance.


Files

mmap_write.c (1.42 KB) mmap_write.c demo Andriy Gapon, 2015-11-11 01:53 PM

Related issues

Related to illumos gate - Bug #13118: Very slow reaping, possible deadlock in zfs_delmapClosedAlex Wilson

Actions
Actions

Also available in: Atom PDF