summaryrefslogtreecommitdiff
path: root/net/sunrpc
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2019-11-07 17:16:23 +0100
committerIlya Dryomov <idryomov@gmail.com>2019-11-25 11:44:02 +0100
commit39258aa2db8175271d8079b7685a6e328a8c1a63 (patch)
tree13cfc7040e31e587f193509ebd800b80e96fb310 /net/sunrpc
parentf3c0e45900a60e1de1a03f74327ea341e713ea45 (diff)
rbd: introduce RBD_DEV_FLAG_READONLY
rbd_dev->opts is not available for parent images, making checking rbd_dev->opts->read_only in various places (rbd_dev_image_probe(), need_exclusive_lock(), use_object_map() in the following patches) harder than it needs to be. Keeping rbd_dev_image_probe() in mind, move the initialization in do_rbd_add() up. snap_id isn't filled in at that point, so replace rbd_is_snap() with a snap_name comparison. Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Jason Dillaman <dillaman@redhat.com> Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Diffstat (limited to 'net/sunrpc')
0 files changed, 0 insertions, 0 deletions