Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-13023

PCC: The size of the PCC copy is not truncated to 0 when attach

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.13.0
    • None
    • 3
    • 9223372036854775807

    Description

      In the Linux kernel, it seems that dentry_open() with O_TRUNC flag (i.e. Ext4) does not take effect to truncate the size of the PCC copy to zero.

      This may result in incorrect size for PCC copy in the following test cases:

      • Attach a file with size of s1 (s2 > 0) into PCC;
      • detach this file with --keep option, and the data will retain on PCC;
      • truncate this file locally or on an remote client to the size s2 (s2 < s1);
      • re-attach the file again.

      This problem is solved by reset the file size of the PCC copy to 0 after open the PCC copy during attach. 

      Attachments

        Activity

          [LU-13023] PCC: The size of the PCC copy is not truncated to 0 when attach
          pjones Peter Jones added a comment -

          Landed for 2.13

          pjones Peter Jones added a comment - Landed for 2.13

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36884/
          Subject: LU-13023 pcc: Incorrect size after re-attach
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 7a810496c2ce970294af7ad5939d43490c1817d7

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36884/ Subject: LU-13023 pcc: Incorrect size after re-attach Project: fs/lustre-release Branch: master Current Patch Set: Commit: 7a810496c2ce970294af7ad5939d43490c1817d7

          Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/36884
          Subject: LU-13023 pcc: Size not truncated to 0 during attach
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: f0caf43a774eca3ab2afd75c2369aaadd56c8aa1

          gerrit Gerrit Updater added a comment - Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/36884 Subject: LU-13023 pcc: Size not truncated to 0 during attach Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: f0caf43a774eca3ab2afd75c2369aaadd56c8aa1

          People

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

            Dates

              Created:
              Updated:
              Resolved: