Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.14.0
    • None
    • 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.

      Attachments

        Issue Links

          Activity

            [LU-11971] Send file creation time to clients

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/58398/
            Subject: LU-11971 utils: add 'lfs find -crtime' alias
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: b3435a3c67dd44fc472dbf751954a4672dae1423

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/58398/ Subject: LU-11971 utils: add 'lfs find -crtime' alias Project: fs/lustre-release Branch: master Current Patch Set: Commit: b3435a3c67dd44fc472dbf751954a4672dae1423

            "Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/58398
            Subject: LU-11971 utils: add 'lfs find -crtime' alias
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 366aa811247db58ae0e815d09c33f0fcf4934852

            gerrit Gerrit Updater added a comment - "Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/58398 Subject: LU-11971 utils: add 'lfs find -crtime' alias Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 366aa811247db58ae0e815d09c33f0fcf4934852
            pjones Peter Jones added a comment -

            Landed for 2.14

            pjones Peter Jones added a comment - Landed for 2.14

            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

            gerrit Gerrit Updater added a comment - 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

            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

            gerrit Gerrit Updater added a comment - 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

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

            adilger Andreas Dilger added a comment - Also need to add support to lfs find to query on this field.

            People

              qian_wc Qian Yingjin
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: