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

rename() to another directory should transfer project quota

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Rank (Obsolete):
      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

              People

              • Assignee:
                hongchao.zhang Hongchao Zhang
                Reporter:
                adilger Andreas Dilger
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: