Skip to content

Commit

Permalink
libnvdimm: increase max envelope size for ioctl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jerry Hoemann authored and Dan Williams committed Apr 28, 2016
1 parent c7e16e5 commit 40abf9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/libnvdimm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 40abf9b

Please sign in to comment.