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

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

    XMLWordPrintable

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

          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: