rbd: snap names are pointer to constant data
authorAlex Elder <elder@inktank.com>
Tue, 30 Apr 2013 05:44:33 +0000 (00:44 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:20:12 +0000 (21:20 -0700)
commitcb75223d2b19161e8d916049673cd297cce43cdd
treead1e4154cdbbf0d13e70f4ba655d3e9bea9aee5b
parenta3fbe5d447bf1f63efa7f4d8c222002ef136cf4b
rbd: snap names are pointer to constant data

Make explicit that snapshot names don't change by making functions
return and take parameters that that point to const qualified data.

This resolves:
    http://tracker.ceph.com/issues/4867

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c