Skip to content

File Object Panics on Disconnect

Reproducing the bug

  1. Start NBD Server with Raw Block + File Object inside a folder:
nbd-rs --export myexport raw file:///folder/file
  1. Connect to the NBD Server with the export myexport
nbd-client -N myexport localhost /dev/nbd0
  1. Disconnect from the NBD Server
nbd-client -d /dev/nbd0

Results:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/object/file.rs:213:55
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information