This is v2 of my patch series to provide 9p server support for Darwin. The patches in this series address review from v1, now support building the virtfs proxy, as well as fix bugs found since v1.
Keno Fischer (20): cutils: Provide strchrnul 9p: proxy: Fix size passed to `connect` 9p: xattr: Fix crash due to free of uninitialized value 9p: linux: Fix a couple Linux assumptions 9p: Properly set errp in fstatfs error path 9p: Avoid warning if FS_IOC_GETVERSION is not defined 9p: Move a couple xattr functions to 9p-util 9p: Rename 9p-util -> 9p-util-linux 9p: Properly error check and translate flags in unlinkat 9p: darwin: Handle struct stat(fs) differences 9p: darwin: Handle struct dirent differences 9p: darwin: Explicitly cast comparisons of mode_t with -1 9p: darwin: Ignore O_{NOATIME, DIRECT} 9p: darwin: Provide a compatibility definition for XATTR_SIZE_MAX 9p: darwin: *xattr_nofollow implementations 9p: darwin: Compatibility for f/l*xattr 9p: darwin: Provide a fallback implementation for utimensat 9p: darwin: Implement compatibility for mknodat 9p: darwin: virtfs-proxy: Implement setuid code for darwin 9p: darwin: configure: Allow VirtFS on Darwin Makefile | 6 ++ Makefile.objs | 1 + configure | 22 +++-- fsdev/file-op-9p.h | 2 +- fsdev/virtfs-proxy-helper.c | 230 ++++++++++++++++++++++++++++---------------- hw/9pfs/9p-local.c | 68 ++++++++----- hw/9pfs/9p-proxy.c | 22 +++-- hw/9pfs/9p-synth.c | 4 + hw/9pfs/9p-util-darwin.c | 185 +++++++++++++++++++++++++++++++++++ hw/9pfs/9p-util-linux.c | 70 ++++++++++++++ hw/9pfs/9p-util.c | 26 ----- hw/9pfs/9p-util.h | 31 ++++++ hw/9pfs/9p-xattr.c | 33 ------- hw/9pfs/9p.c | 86 +++++++++++++++-- hw/9pfs/Makefile.objs | 4 +- include/qemu/cutils.h | 1 + include/qemu/statfs.h | 19 ++++ include/qemu/xattr.h | 4 +- monitor.c | 8 +- util/cutils.c | 13 +++ util/qemu-option.c | 6 +- util/uri.c | 6 +- 22 files changed, 636 insertions(+), 211 deletions(-) create mode 100644 hw/9pfs/9p-util-darwin.c create mode 100644 hw/9pfs/9p-util-linux.c delete mode 100644 hw/9pfs/9p-util.c create mode 100644 include/qemu/statfs.h -- 2.8.1