All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - device_mapper: keep bigger size for most ioctls
Date: Wed, 10 Mar 2021 00:36:26 +0000 (GMT)	[thread overview]
Message-ID: <20210310003626.37417385802B@sourceware.org> (raw)

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b2616cd45670866b4f5b46675fe3f1563eea3415
Commit:        b2616cd45670866b4f5b46675fe3f1563eea3415
Parent:        d2a3bfe6ca75f151a9fa37276dc0f8e3e6dc4ba4
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Tue Mar 9 14:58:09 2021 +0100
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Wed Mar 10 01:07:16 2021 +0100

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;
 	}



                 reply	other threads:[~2021-03-10  0:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210310003626.37417385802B@sourceware.org \
    --to=zkabelac@sourceware.org \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.