Project

General

Profile

Actions

Support #16884

closed

rename() doesn't work between directories

Added by Donatas Abraitis almost 8 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Tags:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:

Description

Hi folks!

looks like rename() just doesn't work between directories. Here is the snippet FTP daemon does:

#include <stdio.h>

int main() {
int rc = -1;
char *renamefrom = "/home/003/10003/test.jpg";
char *name = "/home/003/10003/public_html/test.jpg";
if (rc = rename(renamefrom, name) < 0) {
printf("%d\n", rc);
}
return 0;
}

In short, no FTP daemons are working due to this issue. Error from FTP daemon:

451 Rename/move failure: Invalid cross-device link

Thank you in advance!
Donatas.


Related issues 2 (0 open2 closed)

Related to CephFS - Bug #39715: client: optimize rename operation under different quota rootResolvedZhi Zhang

Actions
Related to CephFS - Bug #53509: quota support for subvolumegroupResolvedKotresh Hiremath Ravishankar

Actions
Actions

Also available in: Atom PDF