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

rename() to another directory should transfer project quota

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • Lustre 2.15.0
    • None
    • 9223372036854775807

    Description

      When rename() has a target directory with different project ID from the source directory, the kernel currently returns -EXDEV, which forces userspace to perform a full data copy of the file. This is slow when the files are large, and does not provide any security benefit for the user or admin in the end.

      It would be better to change the project ID to that of the target directory, and assign the quota for the file to the new project ID, the same as is done with chown() and chgrp() for UID and GID quotas.

      Attachments

        Issue Links

          Activity

            [LU-13176] rename() to another directory should transfer project quota
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-17016 [ LU-17016 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to DDN-4102 [ DDN-4102 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-15667 [ LU-15667 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to EX-7021 [ EX-7021 ]
            pjones Peter Jones made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-15294 [ LU-15294 ]
            adilger Andreas Dilger made changes -
            Fix Version/s New: Lustre 2.15.0 [ 14791 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is duplicated by DDN-1657 [ DDN-1657 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-11303 [ LU-11303 ]
            adilger Andreas Dilger made changes -
            Link Original: This issue is related to LU-10606 [ LU-10606 ]

            People

              hongchao.zhang Hongchao Zhang
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: