aboutsummaryrefslogtreecommitdiff
path: root/sutils
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-14 12:51:03 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-14 12:58:59 +0100
commit5641703ef043ffc10ab9ab0e15f29ccbe30df7a5 (patch)
tree5a7f7df8f7926c0b804640c23555673697ac8f06 /sutils
parente6657829a66e72078b33f4c11c4501b054fac904 (diff)
downloadhurd-5641703ef043ffc10ab9ab0e15f29ccbe30df7a5.tar.gz
hurd-5641703ef043ffc10ab9ab0e15f29ccbe30df7a5.tar.bz2
hurd-5641703ef043ffc10ab9ab0e15f29ccbe30df7a5.zip
rumpdisk: Support opening a device several times
* rumpdisk/block-rump.c (struct block_data): Make taken field an integer instead of a boolean. (device_open): When search_bd succeeds, set a new reference and return a new port right. Separate out io_return_t err, int fd, and int ret to avoid confusions. Simplify the error handling path. (device_close): Decrement reference and close rump disk only when reaching zero. Also destroy our port.
Diffstat (limited to 'sutils')
0 files changed, 0 insertions, 0 deletions