diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-14 18:31:16 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-14 18:31:16 +0000 |
| commit | 430682d7e9e28a07c0f27375de38d798bbf4023d (patch) | |
| tree | 3e5a68b0d8ed23a45805402fe3532f33d9325fb2 | |
| parent | 3e0ec8cd5ecc2975864da2bbf768a3d7dffa829b (diff) | |
util/nvmutil: 5 retries, not 10
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | util/nvmutil/nvmutil.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index d291e7b0..3ef0d57a 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -21,7 +21,7 @@ * Regarding: * Retries on zero-return. * - * 10 retries is generous, + * 5 retries is generous, * but also conservative. * This is enough for e.g. * slow USB flash drives, @@ -29,11 +29,17 @@ * Any more is too much * 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. * Pass this at build time. */ #ifndef MAX_ZERO_RW_RETRY -#define MAX_ZERO_RW_RETRY 10 +#define MAX_ZERO_RW_RETRY 5 #endif /* * 0: portable pread/pwrite |
