[COOK-3911] Allow to use maxsize parameter.

https://tickets.opscode.com/browse/COOK-3911