Richard W.M. Jones
2019-Apr-01 11:29 UTC
[Libguestfs] [PATCH nbdkit] error: Fix all error-*-file parameters.
These didn't work because of copy and paste errors in commit 086a1ceaeb8da4c67787c31580548f7a607b7a7c and commit f649b53c037681e897471aa438758a07f067d624. Thanks: Martin Kletzander --- filters/error/error.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/filters/error/error.c b/filters/error/error.c index bf7b442..0f84f12 100644 --- a/filters/error/error.c +++ b/filters/error/error.c @@ -213,27 +213,27 @@ error_config (nbdkit_next_config *next, void *nxdata, extents_settings.file = nbdkit_absolute_path (value); return 0; } - else if (strcmp (key, "error-pread-rate") == 0) { + else if (strcmp (key, "error-pread-file") == 0) { free (pread_settings.file); pread_settings.file = nbdkit_absolute_path (value); return 0; } - else if (strcmp (key, "error-pwrite-rate") == 0) { + else if (strcmp (key, "error-pwrite-file") == 0) { free (pwrite_settings.file); pwrite_settings.file = nbdkit_absolute_path (value); return 0; } - else if (strcmp (key, "error-trim-rate") == 0) { + else if (strcmp (key, "error-trim-file") == 0) { free (trim_settings.file); trim_settings.file = nbdkit_absolute_path (value); return 0; } - else if (strcmp (key, "error-zero-rate") == 0) { + else if (strcmp (key, "error-zero-file") == 0) { free (zero_settings.file); zero_settings.file = nbdkit_absolute_path (value); return 0; } - else if (strcmp (key, "error-extents-rate") == 0) { + else if (strcmp (key, "error-extents-file") == 0) { free (extents_settings.file); extents_settings.file = nbdkit_absolute_path (value); return 0; -- 2.20.1
Reasonably Related Threads
- [PATCH nbdkit v4 07/15] error: Extend the error filter so it can inject errors into block status extents requests.
- [PATCH nbdkit v5 FINAL 08/19] error: Extend the error filter so it can inject errors into block status extents requests.
- [PATCH nbdkit v5 FINAL 00/19] Implement extents.
- [PATCH nbdkit v4 00/15] Implement Block Status.
- [nbdkit PATCH v2 00/24] implement NBD_CMD_CACHE