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 #1

Updated by Venky Shankar about 2 years ago

  • Category set to Correctness/Safety
  • Status changed from New to Triaged
  • Assignee set to Dhairya Parmar
  • Target version set to v18.0.0
  • Source set to Community (dev)
  • Backport set to quincy, pacific
  • Component(FS) cephfs-shell added
  • Labels (FS) task(easy) added
Actions #2

Updated by Dhairya Parmar about 2 years ago

  • Pull request ID set to 45797
Actions #3

Updated by Venky Shankar almost 2 years ago

  • Status changed from Triaged to Pending Backport
Actions #4

Updated by Backport Bot almost 2 years ago

  • Copied to Backport #55629: pacific: cephfs-shell: saving files doesn't work as expected added
Actions #5

Updated by Backport Bot almost 2 years ago

  • Copied to Backport #55630: quincy: cephfs-shell: saving files doesn't work as expected added
Actions #6

Updated by Dhairya Parmar almost 2 years ago

  • Pull request ID changed from 45797 to 45829
Actions #7

Updated by Dhairya Parmar almost 2 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF