]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephfs-shell: get command should never create a directory on its own
authordparmar18 <dparmar@redhat.com>
Wed, 6 Apr 2022 14:41:06 +0000 (20:11 +0530)
committerdparmar18 <dparmar@redhat.com>
Wed, 11 May 2022 11:46:28 +0000 (17:16 +0530)
commit64df8c2cdf352ff93404a895f2ce3a395341a6ed
tree4b39af109f98934cccaec491491cd79156c6039f
parent31ce2eff60242f962ba648f1c71f616ec5c90284
cephfs-shell: get command should never create a directory on its own

Descrption: When using the get command on a single file, it would append the remote path to
            source path and create directories that shouldn't be created. For instance,
            file 'foo.txt' resides at `/dir1/dir2/` and `get` command is used to copy it to
            /tmp/foo then it would do `/tmp/dir1/dir2/foo.txt` which is not the expected
            behavior. Therefore this PR intends to correct this behavior.

Fixes: https://tracker.ceph.com/issues/55112
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
src/tools/cephfs/cephfs-shell