]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: domain: Use global constant for XML file size limit
authorPeter Krempa <pkrempa@redhat.com>
Tue, 14 Oct 2014 08:04:31 +0000 (10:04 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 14 Oct 2014 08:04:31 +0000 (10:04 +0200)
commit4d1852c48541a29e3c47caf0f2b801dfcb6579db
tree14649cd3c503d874e0df581fe8efc314e4c901dd
parent59de544f6a1a8d022a15993c9bd026b0c3a12f22
virsh: domain: Use global constant for XML file size limit

Few places still used hardcoded limit for maximum XML size for commands
that accept XML files. The hardcoded limits ranged from 8k to 1M. Use
VSH_MAX_XML_FILE to express this limit in a unified way. This will bump
the limit for the commands that used hardcoded string lengths to 10M.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1152427
tools/virsh-domain.c