summaryrefslogtreecommitdiff
path: root/device_mapper
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-03-09 14:58:09 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2021-03-10 01:07:16 +0100
commitb2616cd45670866b4f5b46675fe3f1563eea3415 (patch)
tree288b4cb33d707a7ecea3e8c92e0e055c3038ecd5 /device_mapper
parentd2a3bfe6ca75f151a9fa37276dc0f8e3e6dc4ba4 (diff)
downloadlvm2-b2616cd45670866b4f5b46675fe3f1563eea3415.tar.gz
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.
Diffstat (limited to 'device_mapper')
-rw-r--r--device_mapper/ioctl/libdm-iface.c2
1 files changed, 1 insertions, 1 deletions
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;
}