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

add STATX_PROJID to upstream kernel


    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Epic:
    • Rank (Obsolete):


      Support for statx() was landed to Lustre 2.14 in LU-10934, and I realize that the upstream kernel does not support requesting the project ID as part of that interface.

      It would be very useful to add a new STATX_PROJID = 0x2000 flag to the upstream kernel, and integrate this into the statx() handling for ext4, xfs, and f2fs if that is easy. It seems possible to use the sb->dq_op->get_projid() interface to fetch this at the VFS level, if available. The STATX_ATTR_PROJINHERIT = 0x20000000 flag should be added to stx_attributes_mask.

      While it may take some time to get this into a kernel that we are using, better to start it now, and once it is landed upstream we can at least request to get it added to RHEL8 or similar.

      You should add David Howells <dhowells@redhat.com> to the CC list for the patch review.


          Issue Links



              • Assignee:
                wshilong Wang Shilong
                adilger Andreas Dilger
              • Votes:
                0 Vote for this issue
                6 Start watching this issue


                • Created: