Project

General

Profile

Actions

Bug #55112

closed

cephfs-shell: saving files doesn't work as expected

Added by Jeff Layton about 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Category:
Correctness/Safety
Target version:
% Done:

0%

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

Description

The "get" command in cephfs-shell doesn't behave as expected. Suppose I do this to save a file in a directory that lives on cephfs:

CephFS:~/volumes/_nogroup/client1/6a0ce533-aa3d-4413-aada-43757ed11949/dir>>> get c4BCAcYhN5u8K9c0mUaIEQ /tmp/foo

My assumption is that this is modeled after the old command-line ftp program. If so, then I would expect that that would save the file in a local file called "/tmp/foo", but instead it creates a directory "/tmp/foo" and stores a file called c4BCAcYhN5u8K9c0mUaIEQ in there.

When using the get command on a single file, it should attempt to save the file directly to the filename specified, and only if the terminating dentry turns out to already be a directory should it then save the file inside it. It should never create a directory on its own like this.


Related issues 2 (0 open2 closed)

Copied to CephFS - Backport #55629: pacific: cephfs-shell: saving files doesn't work as expectedResolvedActions
Copied to CephFS - Backport #55630: quincy: cephfs-shell: saving files doesn't work as expectedResolvedActions
Actions

Also available in: Atom PDF