]> git.proxmox.com Git - mirror_qemu.git/commit
9pfs: add xattrwalk_fid field in V9fsXattr struct
authorLi Qiang <liqiang6-s@360.cn>
Tue, 1 Nov 2016 11:00:40 +0000 (12:00 +0100)
committerGreg Kurz <groug@kaod.org>
Tue, 1 Nov 2016 11:00:40 +0000 (12:00 +0100)
commitdd28fbbc2edc0822965d402d927ce646326d6954
treed6a2304207c069681540e4521aef42a4a170368a
parent02ba9265e8d65f24d0cdca158d96e0b0451f6b71
9pfs: add xattrwalk_fid field in V9fsXattr struct

Currently, 9pfs sets the 'copied_len' field in V9fsXattr
to -1 to tag xattr walk fid. As the 'copied_len' is also
used to account for copied bytes, this may make confusion. This patch
add a bool 'xattrwalk_fid' to tag the xattr walk fid.

Suggested-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Greg Kurz <groug@kaod.org>
hw/9pfs/9p.c
hw/9pfs/9p.h