Project

General

Profile

Actions

Bug #3608

closed

librbd rbd_remove returns wrong errno when image does not exist

Added by Corin Langosch over 11 years ago. Updated about 9 years ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Category:
librbd
Target version:
-
% Done:

0%

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

Description

I'm currently working with librbd and noticed that rbd_remove returns an errno of -16 (EBUSY) when the specified image does not exist. The command line tool(rbd rm ...) correctly returns an errno of -2 (ENOENT). I'm using latest argonat (0.48.2).

Actions

Also available in: Atom PDF