Actions
Bug #53056
openrbd map fail when has a file named /dev/rbd0 which is the mapping target
% Done:
0%
Source:
Tags:
krbd
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
This happened when I start a fio to test the /dev/rbd0 when rbd map failed.
The fio create a file named /dev/rbd0. After that, I remapped rbd, and it get success. But /dev/rbd0 is still a file not a device.
It can be simply trigged as
touch /dev/rbd0
rbd map 1
rbd showmapped
id pool namespace image snap device
0 rbd 1 - /dev/rbd0
but /dev/rbd0 looks like rw-r--r- 1 root root 0 Oct 27 11:07 /dev/rbd0
uname -a
Linux node1 5.4.0-81-generic #91~18.04.1-Ubuntu SMP Fri Jul 23 13:36:29 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Actions