]> git.ipfire.org Git - thirdparty/qemu.git/commit
9pfs: replace not_same_qid() by same_stat_id()
authorChristian Schoenebeck <qemu_oss@crudebyte.com>
Fri, 4 Jun 2021 17:57:21 +0000 (19:57 +0200)
committerChristian Schoenebeck <qemu_oss@crudebyte.com>
Mon, 5 Jul 2021 11:03:16 +0000 (13:03 +0200)
commitf22cad42281621f86a0756a7cff382f90a33ec8c
tree038f46fbad389668d64174d6de7f9b4fef73651e
parent1d0fc0d0eef057dc02055f531907188d19a83cb2
9pfs: replace not_same_qid() by same_stat_id()

As we are actually only comparing the filesystem ID (i.e. device number
and inode number pair) let's use the POSIX stat buffer instead of QIDs,
because resolving QIDs requires to be done on 9p server's main thread
only as it might mutate the server state if inode remapping is enabled.

Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-Id: <26aa465ff9cc9c07e053331554a02fdae3994417.1622821729.git.qemu_oss@crudebyte.com>
hw/9pfs/9p.c