]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: virdevmapper: Sanitize use of macros for buffer size
authorPeter Krempa <pkrempa@redhat.com>
Mon, 29 Mar 2021 13:03:50 +0000 (15:03 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Sep 2021 10:25:41 +0000 (12:25 +0200)
commit45ea6a9fcf840fda4b06e72477db7bd624dce1b6
treec4ff30ceccaed0eb482c8c47b5d9a362432e4f44
parent2d6d67e1544a8a86249a1e958e1829b41bf84cde
util: virdevmapper: Sanitize use of macros for buffer size

There are two distinct uses of an arbitrary buffers size when querying
the device mapper. One is related to loading the /proc/devices file,
while the other is used as buffer for ioctls to the devmapper.

Split up the macros used here so that it's clear that they are not meant
for the same thing.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virdevmapper.c