nbd/server: Use real permissions for NBD exports
commit8a7ce4f9338c475df1afc12502af704e4300a3e0
authorKevin Wolf <kwolf@redhat.com>
Thu, 9 Feb 2017 14:43:38 +0000 (9 15:43 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Feb 2017 19:47:50 +0000 (28 20:47 +0100)
tree1ef8357156bb2a23311a5da74333f48645b9662d
parent6f5ef23a3ff09919b73eef8196969685cb2383ee
nbd/server: Use real permissions for NBD exports

NBD can't cope with device size changes, so resize must be forbidden,
but otherwise we can tolerate anything. Depending on whether the export
is writable or not, we only require consistent reads and writes.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
nbd/server.c