bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] hurd - Allow libstore to open non-mach device


From: Damien Zammit
Subject: [PATCH] hurd - Allow libstore to open non-mach device
Date: Mon, 24 Dec 2018 18:44:42 +1100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Hi,

This patch adds ability to libstore to open a device node that is not a
mach device.
This is in preparation for rump kernel to provide disk access.

Tested as follows:

demo@debian:~$ sudo settrans /dev/z0 /hurd/devnode hd2
demo@debian:~$ sudo settrans /dev/hd2 /hurd/storeio /dev/z0
demo@debian:~$ sudo showtrans /dev/hd2
/hurd/storeio /dev/z0
demo@debian:~$ sudo showtrans /dev/z0
/hurd/devnode hd2
demo@debian:~$ sudo fdisk /dev/hd2

Welcome to fdisk (util-linux 2.29.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p
Disk /dev/hd2: 10 MiB, 10485760 bytes, 20480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Command (m for help):

See attached for patch.

Thanks,
Damien

Attachment: 0001-Prepare-for-rump-disk-access-by-making-libstore-take.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]