]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
Use device maximum for error log entries
authorKeith Busch <keith.busch@intel.com>
Fri, 28 Aug 2015 14:42:00 +0000 (08:42 -0600)
committerKeith Busch <keith.busch@intel.com>
Fri, 28 Aug 2015 14:42:00 +0000 (08:42 -0600)
commit5018e560ba537020fd49f7b9b7df3e8aaa99e9f7
tree7e185ca578b6721a70aba6cd5438170830a97225
parent7cad3a0b854b9622d577f5891aedb6e4ebcd3768
Use device maximum for error log entries

It's been reported that some controllers return error if more logs were
requested than the device's max. This patch overrides the user's request,
or the default if the option was not given, with the device's max if
the setting exceeds it.

Signed-off-by: Keith Busch <keith.busch@intel.com>
nvme.c