From: Anton Altaparmakov <aia21@cam.ac.uk>
To: Christoph Hellwig <hch@lst.de>
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: truncate and {m,c}time on ntfs
Date: Sun, 12 Mar 2006 16:50:24 +0000 (GMT) [thread overview]
Message-ID: <Pine.LNX.4.64.0603121641380.29271@hermes-2.csi.cam.ac.uk> (raw)
Hi Christoph,
A patch of yours modified fs/ntfs/inode.c::ntfs_truncate() and inserted
this comment:
[snip]
/* normally ->truncate shouldn't update ctime or mtime,
* but ntfs did before so it got a copy & paste version
* of file_update_time. one day someone should fix this
* for real.
*/
[snip]
Did you realise that all (local) file systems in Linux kernel set both
{m,c}time in their ->truncate function. E.g. from
fs/ext3.c/inode.c::ext3_truncate():
inode->i_mtime = inode->i_ctime = CURRENT_TIME_SEC;
Would you be so kind to explain what is your problem with ntfs doing it,
too? And if your statement is correct and no file system should touch
{m,c}time in their ->truncate() method, could you explain to me how the
{m,c}time would be set otherwise when open(O_TRUNC) or {f,}truncate() is
executed on a file?
Thanks a lot in advance.
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/
next reply other threads:[~2006-03-12 16:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-12 16:50 Anton Altaparmakov [this message]
2006-03-12 17:00 ` truncate and {m,c}time on ntfs Anton Altaparmakov
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=Pine.LNX.4.64.0603121641380.29271@hermes-2.csi.cam.ac.uk \
--to=aia21@cam.ac.uk \
--cc=hch@lst.de \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@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).