From b2616cd45670866b4f5b46675fe3f1563eea3415 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 9 Mar 2021 14:58:09 +0100 Subject: [PATCH] device_mapper: keep bigger size for most ioctls Actually the idea was to keep 2K ioctl only for certain command, so keep 16 for them. --- device_mapper/ioctl/libdm-iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device_mapper/ioctl/libdm-iface.c b/device_mapper/ioctl/libdm-iface.c index 906d84b4e..6b3818e3a 100644 --- a/device_mapper/ioctl/libdm-iface.c +++ b/device_mapper/ioctl/libdm-iface.c @@ -1140,12 +1140,12 @@ static struct dm_ioctl *_flatten(struct dm_task *dmt, unsigned repeat_count) switch (dmt->type) { case DM_DEVICE_CREATE: case DM_DEVICE_DEPS: - case DM_DEVICE_INFO: case DM_DEVICE_LIST: case DM_DEVICE_STATUS: case DM_DEVICE_TABLE: case DM_DEVICE_TARGET_MSG: min_size = 16 * 1024; + break; default: min_size = 2 * 1024; } -- 2.43.5