* inconsistent timestamp update in rename() of xfs/fat/gfs2/ramfs/jffs2...
@ 2015-03-20 20:23 Taesoo Kim
2015-03-20 22:28 ` Dave Chinner
0 siblings, 1 reply; 2+ messages in thread
From: Taesoo Kim @ 2015-03-20 20:23 UTC (permalink / raw)
To: lczerner, cmaiolino, xfs, linux-fsdevel, linux-kernel
Cc: taesoo, changwoo, sanidhya, blee, csong84
Hi all,
We've cross-checking patches from ext3/ext4, and found out
inconsistent implementations of other fs. We want to ask whether this
is intended or unexpected behavior. We will be able to send patches as
soon as confirmed/acknowledged.
Ref.
(ext4) 53b7e9f6807c1274eee19201396b4c2b5f721553
(ext3) 0b23076988b44b2c165e060248345de6f2337387
| ext3/4: fix update of mtime and ctime on rename
---------------------------------------------------------------------
We summarized our finding:
(* means what we believe is correct beahvoir)
<Linux 4.0-rc2>
ramfs affs fsplus
vfs xfs fat gfs2 jffs2 hfsh
operation | * | | | | | | | | |
===========================================================
new_inode->i_ctime | V | - | - | V | V | - | - | V | - | -
old_inode->i_ctime | V | V | V | - | V | V | - | - | - | -
old_dir->i_ctime | V | V | V | V | V | V | V | - | V | V
old_dir->i_mtime | V | V | V | V | V | V | V | - | V | V
new_dir->i_ctime | V | V | V | V | - | V | V | - | V | V
new_dir->i_mtime | V | V | V | V | - | V | V | - | V | V
new_dir->i_atime | - | - | - | V | - | - | - | - | - | -
* Correct behavior in
ext2, ext3, ext4, btrfs, f2fs, nilfs, reiserfs, cifs, exofs, jfs,
ubifs, ocfs and minix
---------------------------------------------------------------------
Thanks,
Taesoo
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: inconsistent timestamp update in rename() of xfs/fat/gfs2/ramfs/jffs2...
2015-03-20 20:23 inconsistent timestamp update in rename() of xfs/fat/gfs2/ramfs/jffs2 Taesoo Kim
@ 2015-03-20 22:28 ` Dave Chinner
0 siblings, 0 replies; 2+ messages in thread
From: Dave Chinner @ 2015-03-20 22:28 UTC (permalink / raw)
To: Taesoo Kim
Cc: lczerner, cmaiolino, xfs, linux-fsdevel, linux-kernel, blee,
csong84, changwoo, sanidhya
On Fri, Mar 20, 2015 at 04:23:39PM -0400, Taesoo Kim wrote:
> Hi all,
>
> We've cross-checking patches from ext3/ext4, and found out
> inconsistent implementations of other fs. We want to ask whether this
> is intended or unexpected behavior. We will be able to send patches as
> soon as confirmed/acknowledged.
>
> Ref.
>
> (ext4) 53b7e9f6807c1274eee19201396b4c2b5f721553
> (ext3) 0b23076988b44b2c165e060248345de6f2337387
>
> | ext3/4: fix update of mtime and ctime on rename
>
> ---------------------------------------------------------------------
> We summarized our finding:
> (* means what we believe is correct beahvoir)
>
> <Linux 4.0-rc2>
> ramfs affs fsplus
> vfs xfs fat gfs2 jffs2 hfsh
> operation | * | | | | | | | | |
> ===========================================================
> new_inode->i_ctime | V | - | - | V | V | - | - | V | - | -
This timestamp behaviour is undefined by posix, therefore all
filesystems are behaving "correctly" according to the POSIX
specification regardless of whether this timestamp is updated or
not.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/rename.html
....
Upon successful completion, rename() shall mark for update the last data
modification and last file status change timestamps of the parent directory of
each file.
....
APPLICATION USAGE
Some implementations mark for update the last file status change timestamp of
renamed files and some do not. Applications which make use of the last file
status change timestamp may behave differently with respect to renamed files
unless they are designed to allow for either behavior.
....
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-20 22:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-20 20:23 inconsistent timestamp update in rename() of xfs/fat/gfs2/ramfs/jffs2 Taesoo Kim
2015-03-20 22:28 ` Dave Chinner
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).