Project

General

Profile

Actions

Bug #44791

closed
GF JL

fs/ceph: support cross-quota-tree renames

Bug #44791: fs/ceph: support cross-quota-tree renames

Added by Greg Farnum over 6 years ago. Updated over 6 years ago.

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

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

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

LH Updated by Luis Henriques over 6 years ago Actions #1

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.

JL Updated by Jeff Layton over 6 years ago Actions #3

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

Merged and should make v5.8.

Actions

Also available in: PDF Atom