rbd: add helper function to get local state
rbd: add helper function to get local state

added helper function to check the local image
state is up+replaying.

Signed-off-by: Madhu Rajanna <60fbf37a92c2a0908e31296d18dadbec5a4dae17@gmail.com>

ceph/ceph-csi,ceph/ceph-csi,ceph/ceph-csi,ceph/ceph-csi