From: Alex Elder Date: Tue, 3 Jul 2012 21:01:19 +0000 (-0500) Subject: rbd: increase maximum snapshot name length X-Git-Tag: v3.8-rc1~21^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4b125e9eb43babd14538ba61718e3db71a98d29;p=pandora-kernel.git rbd: increase maximum snapshot name length 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 Reviewed-by: Dan Mick Reviewed-by: Josh Durgin --- Reading git-diff-tree failed