NBD: flag handling cleanup
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | nbd: Treat flags vs. command type as separate fieldsblock/ include/ nbd/ +1 more | +41 | 0 replies | |
| 2/3 | nbd: Fix poor debug messagenbd/ | +1 | 1 reply | |
| 3/3 | nbd: Reject unknown request flagsnbd/ | +4 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [PATCH 0/3] NBD: flag handling cleanup
I'm currently helping with work on adding extensions to the upstream NBD protocol to allow more efficient handling of sparse files, and wanted to get my feet wet in the qemu NBD code (both client and server), to actually implement those proposals to see how well they work. In the process, I found a flaw where we were silently ignoring bad client flags; the same flaw was just recently patched in upstream NBD:
https://github.com/yoe/nbd/commit/ab22e0820
I didn't go quite as far as upstream (that is, I still silently permit FLAG_FUA in combination with CMD_TRIM, which does not have defined semantics upstream, and where our current implementation might be too weak compared to the actual semantics that upstream wants to propose, because we aren't actually flushing in that case), but this at least gets rid of the worst offenses and starts to document some anomolies that may need later fixing.
Eric Blake (3):
nbd: Treat flags vs. command type as separate fields
nbd: Fix poor debug message
nbd: Reject unknown request flags
include/block/nbd.h | 17 +++++++++++------ block/nbd-client.c | 11 ++++------- nbd/client.c | 19 +++++++++++-------- nbd/server.c | 32 ++++++++++++++++++++------------ 4 files changed, 46 insertions(+), 33 deletions(-)
Signature · 1 line
2.5.5