Project

General

Profile

Bug #693

Adding a non-existent image creates a bad sysfs node

Added by Josh Durgin about 13 years ago. Updated about 13 years ago.

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

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

To reproduce:

echo "10.0.1.247 name=admin rbd doesnotexist" > /sys/bus/rbd/add

/sys/bus/rbd/devices/0 is created:

ls -l /sys/bus/rbd/devices/
total 0
lrwxrwxrwx 1 root root 0 Jan 7 20:01 0 -> ../../../devices/rbd/0

Since this exists, it prevents further images from being added, and accessing an attribute, e.g. `cat /sys/bus/rbd/devices/0/name`, causes a kernel panic.

History

#1 Updated by Yehuda Sadeh about 13 years ago

  • Status changed from New to Resolved

Fixed in 64f2c53e25165d78808f482651a92685fd28ffe9. Had a bad cleanup sequence.

#2 Updated by Yehuda Sadeh about 13 years ago

That's commit:64f2c53e25165d78808f482651a92685fd28ffe9.

#3 Updated by Yehuda Sadeh about 13 years ago

commit:ee0450e4ede0dde6b4c721dfbd0a578b5e13053c in the unstable branch.

Also available in: Atom PDF