On 18/08/2016 15:50, Vladimir Sementsov-Ogievskiy wrote: > > from nbd proto.md: > > "Finally, it SHOULD return |EPERM| if it receives a write or trim > request on a read-only export." > > And EROFS is not mentioned in proto.md > > (however the same bug is in NBD_CMD_WRITE case.)
system_errno_to_nbd_errno takes care of fixing up the return value. Paolo