block/rbd: Add support for reopen()
commit56e7cf8df03ae142c7797435dc0ece80a42f4fd0
authorJeff Cody <jcody@redhat.com>
Fri, 7 Apr 2017 20:55:32 +0000 (7 16:55 -0400)
committerJeff Cody <jcody@redhat.com>
Mon, 24 Apr 2017 19:09:33 +0000 (24 15:09 -0400)
treef976cdb2935eb7e77b6a5943580a7d70948b672e
parent80b61a27c69c67492ce87ddd63ee497b5bc00e7e
block/rbd: Add support for reopen()

This adds support for reopen in rbd, for changing between r/w and r/o.

Note, that this is only a flag change, but we will block a change from
r/o to r/w if we are using an RBD internal snapshot.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: d4e87539167ec6527d44c97b164eabcccf96e4f3.1491597120.git.jcody@redhat.com
block/rbd.c