divinity76 / cacdrive

harddrive emulator using cloudatcost's "cloud storage" as a storage backend.
The Unlicense
9 stars 4 forks source link

must run NBD_DISCONNECT *before* NBD_CLEAR_SOCK #12

Open divinity76 opened 3 years ago

divinity76 commented 3 years ago

... otherwise it can freeze the whole os so it it use several minutes to shut down =|

also it should use it's own open() handle, not the open() handle used by the NBD_DOIT thread... (that's how they do it at least, https://github.com/NetworkBlockDevice/nbd/blob/master/nbd-client.c )