]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b3fd7c7ff621e7cd30caa090636c81335bc8f1b
tree0056a0c95a15a18de05e06846265a2f44c1b98f7
parent778a0d1e2cc757b5cb0f924005815d70b62c07f1
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