diff options
author | Damien Zammit <damien@zamaudio.com> | 2021-12-26 22:38:55 +1100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-12-27 15:51:28 +0100 |
commit | 570fa49449ad9e01f7087f725ee6e073220db237 (patch) | |
tree | 909db05322607cbd9ce0fc3a5aab6376b69105ca /rumpdisk | |
parent | e5762c52ca54b349468df3fcb74a289feb138c2a (diff) | |
download | hurd-570fa49449ad9e01f7087f725ee6e073220db237.tar.gz hurd-570fa49449ad9e01f7087f725ee6e073220db237.tar.bz2 hurd-570fa49449ad9e01f7087f725ee6e073220db237.zip |
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>
Diffstat (limited to 'rumpdisk')
-rw-r--r-- | rumpdisk/block-rump.c | 4 |
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 |