aboutsummaryrefslogtreecommitdiff
path: root/block/sheepdog.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2017-03-28 10:56:01 +0200
committerJeff Cody <jcody@redhat.com>2017-03-28 09:53:16 -0400
commit730b00bbfdc15f914f47e03a703fa7647c10c4a9 (patch)
tree09a4982d4809cf611aed006c261e4660736721e2 /block/sheepdog.c
parentf51c363c2ba97af02fedaeb7eaad68f433007382 (diff)
downloadqemu-730b00bbfdc15f914f47e03a703fa7647c10c4a9.zip
qemu-730b00bbfdc15f914f47e03a703fa7647c10c4a9.tar.gz
qemu-730b00bbfdc15f914f47e03a703fa7647c10c4a9.tar.bz2
rbd: Don't limit length of parameter values
We laboriously enforce that parameter values are between one and some arbitrary limit in length. Only RBD_MAX_IMAGE_NAME_SIZE comes from librbd.h, and I'm not sure it applies. Where the other limits come from is unclear. Drop the length checking. The limits librbd actually imposes must be checked by librbd anyway. There's one minor complication: BDRVRBDState member name is a fixed-size array. Depends on the length limit. Make it a pointer to a dynamically allocated string. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Jeff Cody <jcody@redhat.com> Message-id: 1490691368-32099-4-git-send-email-armbru@redhat.com Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'block/sheepdog.c')
0 files changed, 0 insertions, 0 deletions