]> git.ipfire.org Git - thirdparty/libvirt.git/commit
domain_conf: move vendor, product and tray checks to domain_validate.c
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Thu, 3 Dec 2020 16:54:58 +0000 (13:54 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Wed, 9 Dec 2020 12:51:51 +0000 (09:51 -0300)
commit98bc393579eec51d19a0697930a043f2e5b84f78
treeaba398c6aeecd2863a82cd67d1c4d02d51cf7c19
parent654e10639744d126aa14e482e500e151fd66b8ab
domain_conf: move vendor, product and tray checks to domain_validate.c

The 'tray' check isn't a XML parse specific code and can be pushed
to the validate callback, in virDomainDiskDefValidate().

'vendor' and 'product' string sizes are already checked by the
domaincommon.rng schema, but can be of use in the validate callback
since not all scenarios will go through the XML parsing.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/conf/domain_conf.c
src/conf/domain_validate.c