libnvdimm: increase max envelope size for ioctl
authorJerry Hoemann <jerry.hoemann@hpe.com>
Mon, 11 Apr 2016 22:02:28 +0000 (15:02 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 28 Apr 2016 23:23:16 +0000 (16:23 -0700)
nd_ioctl() must first read in the fixed sized portion of an ioctl so
that it can then determine the size of the variable part.

Prepare for ND_CMD_CALL calls which have larger fixed portion
envelope.

Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
include/linux/libnvdimm.h

index 833867b9ddc28a702834874072441403518133d5..af31d1c6fdd7e45c48e29b8a4386260e98dfd6eb 100644 (file)
@@ -27,7 +27,7 @@ enum {
        /* need to set a limit somewhere, but yes, this is likely overkill */
        ND_IOCTL_MAX_BUFLEN = SZ_4M,
        ND_CMD_MAX_ELEM = 5,
-       ND_CMD_MAX_ENVELOPE = 16,
+       ND_CMD_MAX_ENVELOPE = 256,
        ND_MAX_MAPPINGS = 32,
 
        /* region flag indicating to direct-map persistent memory by default */
This page took 0.035954 seconds and 5 git commands to generate.