]> git.ipfire.org Git - thirdparty/qemu.git/commit
nbd/server: Support inactive nodes
authorKevin Wolf <kwolf@redhat.com>
Tue, 4 Feb 2025 21:14:04 +0000 (22:14 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 6 Feb 2025 13:47:07 +0000 (14:47 +0100)
commit2e73a17c68f4d80023dc616e596e8c1f3ea8dd75
treeca47951f5df0771d326983212398105da03b22a7
parent1600ef01ab1296ca8230daa6bc41ba983751f646
nbd/server: Support inactive nodes

In order to support running an NBD export on inactive nodes, we must
make sure to return errors for any operations that aren't allowed on
inactive nodes. Reads are the only operation we know we need for
inactive images, so to err on the side of caution, return errors for
everything else, even if some operations could possibly be okay.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Acked-by: Fabiano Rosas <farosas@suse.de>
Message-ID: <20250204211407.381505-14-kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
nbd/server.c