Permalink
Browse files
manually touch 'atime' when reading a mbox file
futimens is a new thing, coming from POSIX-2008, yet all modern Unices added it almost immediately. If it isn't implemented, silently ignoring that is no worse than current state. While performance issues related to atime updates have been greatly reduced by relatime and lazytime, it is an abomination for other reasons: CoW filesystems (btrfs, zfs, ...), CoWed VM images, deduplicating thin provisioning, etc lose significant space for every snapshot. It also causes wear on flash-based storage prevalent on SoCs, and so on. Thus, it is prudent to mount everything with noatime. There is only one real use for atime these days: new mail notification on mbox files. With only a limited number of readers (mutt is one), let's do atime updates manually. This can be done unconditionally: while redundant without noatime, there's no performance loss as the inode will be dirty already in such case. Closes: #272
- Loading branch information
Showing
with
22 additions
and 0 deletions.
- +3 −0 configure.ac
- +3 −0 mbox.c
- +10 −0 muttlib.c
- +1 −0 protos.h
- +5 −0 version.c