summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2021-12-26 22:38:55 +1100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-12-27 15:51:28 +0100
commit570fa49449ad9e01f7087f725ee6e073220db237 (patch)
tree909db05322607cbd9ce0fc3a5aab6376b69105ca
parente5762c52ca54b349468df3fcb74a289feb138c2a (diff)
rumpdisk: Use raw uncached character device rwdXd
This disables the rump buffer cache and avoids any magic translation that rump would do. * rumpdisk/block-rump.c (translate_name): Use `/dev/r%sd' format instead of `/dev/%sd'. Message-Id: <20211226113857.150525-4-damien@zamaudio.com>
-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 ce64abde..fe97bf85 100644
--- a/rumpdisk/block-rump.c
+++ b/rumpdisk/block-rump.c
@@ -87,12 +87,12 @@ search_bd (char *name)
return NULL;
}
-/* BSD name of whole disk device is /dev/wdXd
+/* BSD name of whole disk device is /dev/rwdXd
* but we will receive wdX as the name */
static void
translate_name (char *output, int len, char *name)
{
- snprintf (output, len - 1, "/dev/%sd", name);
+ snprintf (output, len - 1, "/dev/r%sd", name);
}
static boolean_t