bug-hurd
[Top][All Lists]
Advanced

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

Re: rumpdisk status


From: Samuel Thibault
Subject: Re: rumpdisk status
Date: Sun, 8 Nov 2020 18:50:12 +0100
User-agent: NeoMutt/20170609 (1.8.3)

Damien Zammit, le dim. 08 nov. 2020 16:10:32 +1100, a ecrit:
> I am using the libparted access method via 
> storeio `-T typed part:x` but using the same underlying device.
> Do I need to make opening a new partition on the same disk device
> open a new handle on the same disk?

Since your device_read() is doing

rump_sys_lseek()
rump_sys_read()

then yes, you'd absolutely need different handles, otherwise concurrent
requests will get mixtures of offsets.

But you can as well replace these two calls with a single tall to
rump_sys_pread() that avoids such issue (ditto for write).

Samuel



reply via email to

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