Actions
Bug #55242
closedcephfs-shell: put command should accept both path mandatorily and validate local_path
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Correctness/Safety
Target version:
% Done:
0%
Source:
Tags:
Backport:
quincy, pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
cephfs-shell
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Currently, there are no checks to make sure, local_path is valid. For instance for a file "helloworld" at /home/dparmar/foo,
[dparmar@fedora foo]$ pwd
/home/dparmar/foo
[dparmar@fedora foo]$ ls
helloworld
When tried using "put" command for helloworld1 instead of helloworld,
CephFS:~/>>> put /home/dparmar/foo/helloworld1 /helloworld
CephFS:~/>>> ls
CephFS:~/>>>
It shows no warning or any other error message, but it should.
Actions