summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2012-07-03 16:01:19 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-17 08:46:49 -0800
commitfefc034ae0af85c0b18fe209a1b6803d51880556 (patch)
tree34c6c986f149c8993dac84debc476d2a078fcc08 /firmware
parentd741dc0695e62bcd1b7cfc7a8baa1f9e95fd07c7 (diff)
rbd: increase maximum snapshot name length
(cherry picked from commit d4b125e9eb43babd14538ba61718e3db71a98d29) Change RBD_MAX_SNAP_NAME_LEN to be based on NAME_MAX. That is a practical limit for the length of a snapshot name (based on the presence of a directory using the name under /sys/bus/rbd to represent the snapshot). The /sys entry is created by prefixing it with "snap_"; define that prefix symbolically, and take its length into account in defining the snapshot name length limit. Enforce the limit in rbd_add_parse_args(). Also delete a dout() call in that function that was not meant to be committed. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Dan Mick <dan.mick@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions