Details
-
Bug
-
Resolution: Fixed
-
Minor
-
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.