]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-discover: Retry discovery log if the generation counter changes
authorHannes Reinecke <hare@suse.de>
Thu, 20 Sep 2018 09:09:34 +0000 (11:09 +0200)
committerKeith Busch <keith.busch@intel.com>
Thu, 20 Sep 2018 15:07:55 +0000 (09:07 -0600)
commit3cbcd165b470a1b86e323e2b256cde8f05a9b5dd
tree2fc97e9fdb0de00948e7097913ca218281586806
parentd9a12812dfe1fe3edf92d71442677cac97bb312e
nvme-discover: Retry discovery log if the generation counter changes

If the generation counter changes we need to validate if the number
of records has changed, too.
If so we need to retry retrieving the discovery log to the most recent
values. The retry will be terminated after MAX_DISC_RETRIES (currently
set to 10) to avoid infinite recursion.

Signed-off-by: Hannes Reinecke <hare@suse.com>
fabrics.c