From: Frank Sorenson <sorenson@redhat.com>
To: linux-fsdevel@vger.kernel.org
Cc: hirofumi@mail.parknet.co.jp
Subject: [PATCH V5 0/4] fat: timestamp updates
Date: Sun, 30 Sep 2018 22:33:49 -0500 [thread overview]
Message-ID: <cover.1538363961.git.sorenson@redhat.com> (raw)
fat/msdos timestamps are stored on-disk with several different
granularities, some of them lower resolution than timespec64_trunc()
can provide. In addition, they are only truncated as they are
written to disk, so the timestamps in-memory for new or modified
files/directories may be different from the same timestamps after
a remount, as the now-truncated times are re-read from the on-disk
format.
These patches allow finer granularity for the timestamps where
possible and add fat-specific ->update_time inode operation and
fat_truncate_time functions to truncate each timestamp correctly,
giving consistent times across remounts.
V5 changes
corrected some patch breakage and style issues
V4 changes
corrected to use fat_truncate_time() and keep mark_inode_dirty()
set s_time_gran to 1ns unconditionally
add i_version support to update_time()
fix atime bug with localtime
Frank Sorenson (4):
fat: create a function to calculate the timezone offest
fat: add functions to update and truncate timestamps appropriately
fat: change timestamp updates to use fat_truncate_time
fat: truncate inode timestamp updates in setattr
fs/fat/dir.c | 2 +-
fs/fat/fat.h | 4 +++
fs/fat/file.c | 17 ++++++++--
fs/fat/inode.c | 9 ++++--
fs/fat/misc.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++++----
fs/fat/namei_msdos.c | 17 +++++-----
fs/fat/namei_vfat.c | 15 +++++----
7 files changed, 128 insertions(+), 27 deletions(-)
--
2.13.6
next reply other threads:[~2018-10-01 10:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-01 3:33 Frank Sorenson [this message]
2018-10-01 3:33 ` [PATCH V5 1/4] fat: create a function to calculate the timezone offest Frank Sorenson
2018-10-01 3:33 ` [PATCH V5 2/4] fat: add functions to update and truncate timestamps appropriately Frank Sorenson
2018-10-01 3:33 ` [PATCH V5 3/4] fat: change timestamp updates to use fat_truncate_time Frank Sorenson
2018-10-01 3:33 ` [PATCH V5 4/4] fat: truncate inode timestamp updates in setattr Frank Sorenson
2018-10-01 8:14 ` [PATCH V5 0/4] fat: timestamp updates OGAWA Hirofumi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1538363961.git.sorenson@redhat.com \
--to=sorenson@redhat.com \
--cc=hirofumi@mail.parknet.co.jp \
--cc=linux-fsdevel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).