Project

General

Profile

Bug #40864

cephfs-shell: rmdir doesn't complain when directory is not empty

Added by Rishabh Dave 9 months ago. Updated 6 months ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
cephfs-shell
Labels (FS):
task(easy)
Pull request ID:
Crash signature:

Description

Passing rmdir an non-empty directory doesn't remove the directory, as it's expected. But not printing anything misleads the user into thinking that the directory might be deleted.

CephFS:~/>>> ls
dir2/   

CephFS:~/>>> ls dir2/
file1  

CephFS:~/>>> rmdir dir2
CephFS:~/>>> ls
dir2/   

CephFS:~/>>> ls dir2
file1  

CephFS:~/>>> 

Related issues

Copied to fs - Backport #42157: nautilus: cephfs-shell: rmdir doesn't complain when directory is not empty In Progress

History

#1 Updated by Rishabh Dave 9 months ago

  • Subject changed from rmdir: doesn't complain when directory is not empty to cephfs-shell: rmdir doesn't complain when directory is not empty

#2 Updated by Varsha Rao 9 months ago

After this PR[https://github.com/ceph/ceph/pull/28514]
It does print an error message, but the message is not appropriate.

CephFS:~/>>> ls
dir2/   

CephFS:~/>>> ls dir2
file1  

CephFS:~/>>> rmdir dir2
error: no such directory /dir2 exists

#3 Updated by Patrick Donnelly 6 months ago

  • Status changed from New to Pending Backport
  • Target version set to v15.0.0
  • Start date deleted (07/22/2019)
  • Source set to Community (dev)
  • Backport set to nautilus
  • Pull request ID set to 30341

#4 Updated by Nathan Cutler 6 months ago

  • Copied to Backport #42157: nautilus: cephfs-shell: rmdir doesn't complain when directory is not empty added

Also available in: Atom PDF