I thought for a while that this flag might be causing a problem with
my other code. That doesn't seem to be the case. However this
feature did lack a test, so add one.
---
tests/test-nbd.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/test-nbd.c b/tests/test-nbd.c
index 2db7c035..ebc9efa3 100644
--- a/tests/test-nbd.c
+++ b/tests/test-nbd.c
@@ -57,13 +57,15 @@ main (int argc, char *argv[])
exit (EXIT_FAILURE);
/* Now run a second (newstyle) server connecting to the oldstyle
- * server above.
+ * server above. Add shared=true on this handle to test that
+ * feature.
*/
if (asprintf (&sockarg, "socket=%s", sock) < 0) {
perror ("asprintf");
exit (EXIT_FAILURE);
}
- if (test_start_nbdkit ("-e", "wrap", "nbd", sockarg,
NULL) == -1)
+ if (test_start_nbdkit ("-e", "wrap", "nbd", sockarg,
+ "shared=true", NULL) == -1)
exit (EXIT_FAILURE);
free (sockarg);
--
2.25.0