]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: add read_only rbd map option
authorAlex Elder <elder@inktank.com>
Fri, 10 Aug 2012 20:12:07 +0000 (13:12 -0700)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 19:30:50 +0000 (14:30 -0500)
commitea6e9d7a4b46e81e74236a674f9a7dc8386fa9ac
treea721584161916d3ba4ebe62cd919a4248b966145
parent003c4899c1ba0c8c02e6f522693072784ece714a
rbd: add read_only rbd map option

Add the ability to map an rbd image read-only, by specifying either
"read_only" or "ro" as an option on the rbd "command line."  Also
allow the inverse to be explicitly specified using "read_write" or
"rw".

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
drivers/block/rbd.c