aboutsummaryrefslogtreecommitdiff
path: root/hw/9pfs/9p.c
diff options
context:
space:
mode:
authorAntonios Motakis <antonios.motakis@huawei.com>2019-10-10 11:36:04 +0200
committerGreg Kurz <groug@kaod.org>2019-10-10 11:36:04 +0200
commit870328335286385b5a78ba7d925b46dc5ba74d7f (patch)
tree5108ee360e884373fa8afbbb838820ad2b8f0f29 /hw/9pfs/9p.c
parent98b2e3c9ab3abfe476a2b02f8f51813edb90e72d (diff)
downloadqemu-870328335286385b5a78ba7d925b46dc5ba74d7f.zip
qemu-870328335286385b5a78ba7d925b46dc5ba74d7f.tar.gz
qemu-870328335286385b5a78ba7d925b46dc5ba74d7f.tar.bz2
9p: unsigned type for type, version, path
There is no need for signedness on these QID fields for 9p. Signed-off-by: Antonios Motakis <antonios.motakis@huawei.com> [CS: - Also make QID type unsigned. - Adjust donttouch_stat() to new types. - Adjust trace-events to new types. ] Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Signed-off-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'hw/9pfs/9p.c')
-rw-r--r--hw/9pfs/9p.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c
index cce2366..cf317bd 100644
--- a/hw/9pfs/9p.c
+++ b/hw/9pfs/9p.c
@@ -744,9 +744,9 @@ static int donttouch_stat(V9fsStat *stat)
{
if (stat->type == -1 &&
stat->dev == -1 &&
- stat->qid.type == -1 &&
- stat->qid.version == -1 &&
- stat->qid.path == -1 &&
+ stat->qid.type == 0xff &&
+ stat->qid.version == (uint32_t) -1 &&
+ stat->qid.path == (uint64_t) -1 &&
stat->mode == -1 &&
stat->atime == -1 &&
stat->mtime == -1 &&