xfs
[Top] [All Lists]

inconsistent timestamp update in rename() of xfs/fat/gfs2/ramfs/jffs2...

To: lczerner@xxxxxxxxxx, cmaiolino@xxxxxxxxxx, xfs@xxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
Subject: inconsistent timestamp update in rename() of xfs/fat/gfs2/ramfs/jffs2...
From: Taesoo Kim <taesoo@xxxxxxxxxx>
Date: Fri, 20 Mar 2015 16:23:39 -0400
Cc: taesoo@xxxxxxxxxx, changwoo@xxxxxxxxxx, sanidhya@xxxxxxxxxx, blee@xxxxxxxxxx, csong84@xxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=gWCA+LsDsAWcgQel0iAFZ+qvdN+kt2pkIAhu9ilY58k=; b=gjemTBZUq1nYDUh7ZmgJAPMKKEV3VT7BMZvto45xVsE+bK4+g/YAqVKb/1A1NZdWzh mIoS46PCLSeh09pNbaIRJKbRTSQpA7S/nFQFBgS0ZlNio/Dz39yM5KizqCvHIg01k34P tzwbGRXMaOMXkPEGzcvR7uHKs7/StYuDDYSsWRJb5eDaS4Bs35nRQel19AWyT6Om4oBc lfRCPaW4WhbVfAomAaLiiwoMFgzNoFkB/QPalto1oLJ4LrlCj3naYz2byxe7jQrgmFE/ +4kjRBFvZHBFCvAg60Fcu4fyLUL6AJpy7uUps9Vc8BbKAYcCs4HUOLuyV+v7I14H+k+A GRWQ==
Sender: Taesoo Kim <tsgatesv@xxxxxxxxx>
User-agent: Mutt/1.5.23.1-rc1 (2014-03-12)
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

<Prev in Thread] Current Thread [Next in Thread>