[dm-devel] [PATCH V3 1/3] multipath-tools: Increase MAX_REPLY_LEN.

Gris Ge fge at redhat.com
Sat Jul 2 00:25:37 UTC 2016


On Fri, Jul 01, 2016 at 04:46:53PM +0200, Hannes Reinecke wrote:
> > -#define MAX_REPLY_LEN		65536
> > +#define MAX_REPLY_LEN		10485760
> > +/* ^ 10 MiB, enough for 'show maps json' command with 10k paths which
> > + *   requires about 8 MiB */
> >  
> >  
> Huh.
> Can't say I like it. The limit is pretty much self-imposed, so I'd
> rather bite the bullet and make it size-independent.
> 
> Cheers,
> 
> Hannes
> -- 
> Dr. Hannes Reinecke		   Teamlead Storage & Networking

Hi Hannes Reinecke,

How about limit the input command string size and let multipathd
output size-independent?

Best regards.

-- 
Gris Ge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20160702/89fc986c/attachment.sig>


More information about the dm-devel mailing list