Project

General

Profile

Bug #2865

rbd import fails for directory but creates rbd image

Added by Tamilarasi muthamizhan over 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Ceph Version: 0.48

Created a local directory t_dir.
when tried to import directory t_dir to rbd/rbd_image, it reported error but still created a rbd image, which is not an expected behaviour.

Pasting below the CLI screenshot,

ubuntu@burnupi64:~$ rbd import t_dir rbd/rbd_image
error reading file: (21) Is a directory
Importing image: 0% complete...failed.
import failed: (21) Is a directory

ubuntu@burnupi64:~$ rados ls -p rbd
rbd_directory
rbd_image.rbd
rbd_info

ubuntu@burnupi64:~$ rbd info rbd_image
rbd image 'rbd_image':
size 4096 bytes in 0 objects
order 22 (4096 KB objects)
block_name_prefix: rb.0.0
parent: (pool -1)

Associated revisions

Revision cbff720f (diff)
Added by Sage Weil almost 11 years ago

rbd: prevent import of a dir

Fixes: #2865
Signed-off-by: Sage Weil <>

History

#1 Updated by Sage Weil almost 11 years ago

  • Project changed from Ceph to rbd

#2 Updated by Sage Weil almost 11 years ago

  • Status changed from New to Resolved

commit:cbff720ff54ac6948f455cf82c4c2eee31d703f4

Also available in: Atom PDF