mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 05:36:23 +02:00
util/nvmutil: 5 retries, not 10
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
* Regarding:
|
* Regarding:
|
||||||
* Retries on zero-return.
|
* Retries on zero-return.
|
||||||
*
|
*
|
||||||
* 10 retries is generous,
|
* 5 retries is generous,
|
||||||
* but also conservative.
|
* but also conservative.
|
||||||
* This is enough for e.g.
|
* This is enough for e.g.
|
||||||
* slow USB flash drives,
|
* slow USB flash drives,
|
||||||
@@ -29,11 +29,17 @@
|
|||||||
* Any more is too much
|
* Any more is too much
|
||||||
* and not of much benefit.
|
* and not of much benefit.
|
||||||
*
|
*
|
||||||
|
* 3-5 will tolerate buggy
|
||||||
|
* USB drives for example,
|
||||||
|
* but won't spin as long
|
||||||
|
* on really buggy and slow
|
||||||
|
* networks e.g. slow NFS.
|
||||||
|
*
|
||||||
* At least 3-5 recommended.
|
* At least 3-5 recommended.
|
||||||
* Pass this at build time.
|
* Pass this at build time.
|
||||||
*/
|
*/
|
||||||
#ifndef MAX_ZERO_RW_RETRY
|
#ifndef MAX_ZERO_RW_RETRY
|
||||||
#define MAX_ZERO_RW_RETRY 10
|
#define MAX_ZERO_RW_RETRY 5
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* 0: portable pread/pwrite
|
* 0: portable pread/pwrite
|
||||||
|
|||||||
Reference in New Issue
Block a user