This is a followup to https://lists.gnu.org/archive/html/qemu-devel/2021-10/msg02902.html, adding 9p server support for Darwin.
Since v1, the following changes have been made: Submission and formatting - Submission via git-publish - Signed-off-by headers now reflect modifications since original submission in 2018 - Previous reviews have been removed, retaining only the newest https://lists.gnu.org/archive/html/qemu-devel/2021-10/msg03426.html Testing - Rebased to apply to latest master - Updated to pass Gitlab CI pipeline Keno Fischer (11): 9p: linux: Fix a couple Linux assumptions 9p: Rename 9p-util -> 9p-util-linux 9p: darwin: Handle struct stat(fs) differences 9p: darwin: Handle struct dirent differences 9p: darwin: Ignore O_{NOATIME, DIRECT} 9p: darwin: Compatibility defn for XATTR_SIZE_MAX 9p: darwin: *xattr_nofollow implementations 9p: darwin: Compatibility for f/l*xattr 9p: darwin: Provide fallback impl for utimensat 9p: darwin: Implement compatibility for mknodat 9p: darwin: meson: Allow VirtFS on Darwin fsdev/file-op-9p.h | 2 +- fsdev/meson.build | 1 + hw/9pfs/9p-local.c | 21 ++- hw/9pfs/9p-proxy.c | 17 ++- hw/9pfs/9p-synth.c | 4 + hw/9pfs/9p-util-darwin.c | 193 +++++++++++++++++++++++++ hw/9pfs/{9p-util.c => 9p-util-linux.c} | 13 +- hw/9pfs/9p-util.h | 29 ++++ hw/9pfs/9p.c | 75 +++++++++- hw/9pfs/codir.c | 4 + hw/9pfs/meson.build | 3 +- include/qemu/statfs.h | 19 +++ include/qemu/xattr.h | 4 +- meson.build | 12 +- 14 files changed, 374 insertions(+), 23 deletions(-) create mode 100644 hw/9pfs/9p-util-darwin.c rename hw/9pfs/{9p-util.c => 9p-util-linux.c} (82%) create mode 100644 include/qemu/statfs.h -- 2.34.0