summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-08-24 14:37:56 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-08-24 14:38:01 +0200
commitffbeed76c9e52d4ea4dd37c7f8782619ddec180f (patch)
treea95a8f7a9a2ea4cacbf90492bcb4882a2be9dc01
parentc2a38a627251956e80826496e958b3c80a24837e (diff)
Revert "rumpdisk: Use raw uncached character device rwdXd"
This reverts commit 517edb7fe7c614a683e18671afc52de8cabe8fdf. It seems to be actually breaking access to the disk.
-rw-r--r--rumpdisk/block-rump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rumpdisk/block-rump.c b/rumpdisk/block-rump.c
index 5477d886..398289fb 100644
--- a/rumpdisk/block-rump.c
+++ b/rumpdisk/block-rump.c
@@ -86,12 +86,12 @@ search_bd (char *name)
return NULL;
}
-/* BSD name of whole disk device is /dev/rwdXd
+/* BSD name of whole disk device is /dev/wdXd
* but we will receive wdX as the name */
static void
translate_name (char *output, int len, char *name)
{
- snprintf (output, len - 1, "/dev/r%sd", name);
+ snprintf (output, len - 1, "/dev/%sd", name);
}
static boolean_t