rbd: dynamically allocate snapshot name
authorAlex Elder <elder@inktank.com>
Tue, 10 Jul 2012 02:04:24 +0000 (21:04 -0500)
committerSage Weil <sage@inktank.com>
Mon, 30 Jul 2012 16:30:04 +0000 (09:30 -0700)
commit820a5f3e94b9f8ea8c0c6125ce34b237ed67b1dc
tree0056a0c95a15a18de05e06846265a2f44c1b98f7
parentbf3e5ae1129ef18a702c14fbaac27aeb2fe25e62
rbd: dynamically allocate snapshot name

There is no need to impose a small limit the length of the snapshot
name recorded for an rbd image in a struct rbd_dev.  Remove the
limitation by allocating space for the snapshot name dynamically.

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