Skip to contentSkip to conversation

Rbd: support copy-on-read option

PATCH In review Li Wang 2 participants 3 messages May 21, 2015

lore
Share & tools
lore

Li Wang

author
#0 lore raw

PATCH 1/1 Rbd: support copy-on-read option

From: Min Chen <[email protected]>

---
 doc/man/8/rbd.rst | 1 +
 src/rbd.cc        | 2 ++
 2 files changed, 3 insertions(+)
doc/man/8/rbd.rst +1 -0
index 4552951..3fb747f 100644
@@ -430,6 +430,7 @@ the running kernel.
 
 * ro - Map the image read-only.  Equivalent to --read-only.
 
+* ro - Map the image with copy-on-read turned on.
 
 Examples
 ========
src/rbd.cc +2 -0
index 4355c4f..fdc35ba 100644
@@ -2545,6 +2545,8 @@ static int parse_map_options(char *options)
         return 1;
     } else if (!strcmp(this_char, "rw") || !strcmp(this_char, "ro")) {
       put_map_option("rw", this_char);
+    } else if (!strcmp(this_char, "cor")) {
+      put_map_option("cor", this_char);
     } else {
       cerr << "rbd: unknown map option '" << this_char << "'" << std::endl;
       return 1;
Signature · 1 line
1.9.1
#1 lore raw
Quoted 14 lines · Li Wang

From: Min Chen <[email protected]>

---
 doc/man/8/rbd.rst | 1 +
 src/rbd.cc        | 2 ++
 2 files changed, 3 insertions(+)
doc/man/8/rbd.rst +0 -0
index 4552951..3fb747f 100644

doc/man/8/rbd.rst the running kernel. · line 433

Quoted 4 lines
doc/man/8/rbd.rst +1 -0
@@ -430,6 +430,7 @@ the running kernel.
 
 * ro - Map the image read-only.  Equivalent to --read-only.
 
+* ro - Map the image with copy-on-read turned on.

Need to change the name of the option, ro -> cor.

Thanks,

Ilya

author
#2 lore raw

Updated at https://github.com/ceph/ceph/pull/4735,
thanks for the comments

Quoted 30 lines · Ilya Dryomov
Quoted 14 lines · Li Wang

From: Min Chen <[email protected]>

---
  doc/man/8/rbd.rst | 1 +
  src/rbd.cc        | 2 ++
  2 files changed, 3 insertions(+)
doc/man/8/rbd.rst +0 -0
index 4552951..3fb747f 100644

doc/man/8/rbd.rst the running kernel. · line 433

Quoted 4 lines
doc/man/8/rbd.rst +1 -0
@@ -430,6 +430,7 @@ the running kernel.
 
  * ro - Map the image read-only.  Equivalent to --read-only.
 
+* ro - Map the image with copy-on-read turned on.

Need to change the name of the option, ro -> cor.

Thanks,

Ilya
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html