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

new project VFS interface ->fileattr_get for PCC project quota

    XMLWordPrintable

Details

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

    Description

      The new Ubuntu 2204 kernel introduces a new project set/get VFS interface ->fileattr_get() and ->fileattr_set().
      In PCC, we set the project ID for PCC copies on PCC backend device via FS_IOC_FSSETXATTR:

      old_fs = force_uaccess_begin();
              rc = file->f_op->unlocked_ioctl(file, FS_IOC_FSSETXATTR,
                                              (unsigned long)&fsx);
      force_uaccess_end(old_fs);
      

      However, the new kernel removes this project IOCTL, this result in the ioctl returns -ENOTTY.
      and result in the sanity-pcc test_39 failed.

      We need to add compatibility check for this new project VFS interface, and fix the setting for PCC project ID properly.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: