]> git.ipfire.org Git - thirdparty/qemu.git/commit
9pfs: local: improve error handling in link op
authorGreg Kurz <groug@kaod.org>
Sun, 26 Feb 2017 22:44:11 +0000 (23:44 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 16 Mar 2017 17:07:59 +0000 (12:07 -0500)
commitd7322e13c6816c0edf12a23f93a78338a0b1ef01
tree32febc0bb0e64092ab21425295fa0209c545c802
parentd93d06a2fc1e126a411178ba2edc10e802e152a1
9pfs: local: improve error handling in link op

When using the mapped-file security model, we also have to create a link
for the metadata file if it exists. In case of failure, we should rollback.

That's what this patch does.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 6dd4b1f1d026e478d9177b28169b377e212400f3)
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/9pfs/9p-local.c