rbd: make rbd spec names pointer to const
authorAlex Elder <elder@inktank.com>
Fri, 26 Apr 2013 14:43:47 +0000 (09:43 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:19:37 +0000 (21:19 -0700)
commitecb4dc225612e1c0b28d2c1b168422dde4f442a6
tree30ba46a6b18030788751dee3084a6e7e4a12bf84
parente1d4213f090644b06aab6ea70e307ecf16182148
rbd: make rbd spec names pointer to const

Make the names and image id in an rbd_spec be pointers to constant
data.  This required the use of a local variable to hold the
snapshot name in rbd_add_parse_args() to avoid a warning.

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