Project

General

Profile

Actions

Bug #6265

closed

krbd: blockdev --setr{o,w} claims success but has no effect

Added by Josh Durgin over 10 years ago. Updated over 10 years ago.

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

0%

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

Description

From http://permalink.gmane.org/gmane.comp.file-systems.ceph.user/3957

I mapped an image to a system, and used blockdev to make it readonly. But it failed.
[root@ceph0 mnt]# blockdev --setro /dev/rbd2
[root@ceph0 mnt]# blockdev --getro /dev/rbd2
0

It's on Centos6.4 with kernel 3.10.6 .
Ceph 0.61.8 .
Actions #1

Updated by Ian Colle over 10 years ago

  • Assignee set to Josh Durgin
Actions #2

Updated by Josh Durgin over 10 years ago

  • Status changed from 12 to Resolved

commit 1a56f326b7d4cfdeb82d0071688732f269994884
Author: Guangliang Zhao <>
Date: Tue Sep 24 11:25:36 2013 +0800

rbd: add ioctl for rbd
When running the following commands:
[root@ceph0 mnt]# blockdev --setro /dev/rbd1
[root@ceph0 mnt]# blockdev --getro /dev/rbd1
0
The block setro didn't take effect, it is because
the rbd doesn't support ioctl of block driver.
This resolves:
http://tracker.ceph.com/issues/6265
Signed-off-by: Guangliang Zhao &lt;&gt;
Reviewed-by: Alex Elder &lt;&gt;
Reviewed-by: Josh Durgin &lt;&gt;
Actions

Also available in: Atom PDF