]> git.proxmox.com Git - qemu.git/commit - util/oslib-posix.c
9pfs: improve portability to older systems
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 21 Nov 2011 08:29:11 +0000 (09:29 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 28 Nov 2011 17:36:27 +0000 (11:36 -0600)
commitae0f940e6b4f5177892dd6a12762282fa9089972
tree3e855a839233c0d0cc2e52daa6e4c30911da5fc5
parent13bd0b5026265611809e99749bd74c2fd095247d
9pfs: improve portability to older systems

Small requirements on "new" features have percolated to virtio-9p-local.c.
In particular, the utimensat wrapper actually only supports dirfd = AT_FDCWD
and flags = AT_SYMLINK_NOFOLLOW in the fallback code.  Remove the arguments
so that virtio-9p-local.c will not use AT_* constants.

At the same time, fail local_ioc_getversion if the ioctl is not supported
by the host.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/9pfs/virtio-9p-local.c
oslib-posix.c
qemu-os-posix.h