[LU-11971] Send file creation time to clients Created: 14/Feb/19  Updated: 23/Sep/20  Resolved: 14/May/20

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.14.0

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: Qian Yingjin
Resolution: Fixed Votes: 0
Labels: easy

Issue Links:
Related
is related to LU-1158 nanosecond timestamp support for Lustre Reopened
is related to LU-11367 integrate LSOM with lfs find Resolved
is related to LU-10934 integrate statx() API with Lustre Resolved
Rank (Obsolete): 9223372036854775807

 Description   

Both ext4 and ZFS allow storing the file creation time in the on-disk inode, and the new statx() API allows returning it to userspace, but as yet we do not have any mechanism to send it from the servers to the client.

Add fields into struct mdt_body and an OBD_MD_FLCRTIME flag to allow it to be requested and returned. There probably is no value to get it from the OSTs or in the LVB since those objects are precreated and their creation time is not accurate.



 Comments   
Comment by Andreas Dilger [ 14/Feb/19 ]

Also need to add support to lfs find to query on this field.

Comment by Gerrit Updater [ 19/Oct/19 ]

Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/36507
Subject: LU-11971 utils: Send file creation time to clients
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 4c5d06fc7dab536fdc66e44dea17519db2253eb0

Comment by Gerrit Updater [ 14/May/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36507/
Subject: LU-11971 utils: Send file creation time to clients
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 186b97e68abbc45c0e8d5ae7e2a0d10aaa918db6

Comment by Peter Jones [ 14/May/20 ]

Landed for 2.14

Generated at Sat Feb 10 02:48:32 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.