Project

General

Profile

Actions

Bug #44791

closed

fs/ceph: support cross-quota-tree renames

Added by Greg Farnum about 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
fs/ceph
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

In ceph_rename, we have this, which is probably what you're hitting:

        /* don't allow cross-quota renames */                                   
        if ((old_dir != new_dir) &&                                             
            (!ceph_quota_is_same_realm(old_dir, new_dir)))                      
                return -EXDEV;

The userspace client only returns EXDEV (or EDQUOT for renaming directories) when the rstats on the moving file/tree would put the target directory over its quota, which seems like a better behavior.


Files

Actions #1

Updated by Luis Henriques about 4 years ago

This behaviour was added to the kernel to mimic userspace commit bbfeaaea53f1 ("client: Forbid moving files across quota trees").

In the meantime, the userspace client changed its behaviour with commit b8954e5734b3 ("client: optimize rename operation under different quota root"). Unfortunately, this change has never been ported to the kernel client.

Actions #3

Updated by Jeff Layton almost 4 years ago

  • Status changed from New to Resolved
  • Assignee set to Jeff Layton

Merged and should make v5.8.

Actions

Also available in: Atom PDF