On Mon, 3 Oct 2011 08:37:52 +0100, Stefan Hajnoczi <stefa...@gmail.com> wrote: > On Sat, Oct 01, 2011 at 03:03:23PM +0530, Aneesh Kumar K.V wrote: > > +#ifndef CONFIG_UTIMENSAT > > + /* > > + * We support handle fs driver only if all related > > + * syscalls are provided by host. > > + */ > > Perhaps a ./configure check should be added to see whether the handle > syscalls are supported instead of using CONFIG_UTIMENSAT. >
We already do check for handle syscall. Since glibc doesn't have the this syscall yet, I added the check in virtio-9p-handle.c as below #ifdef __NR_name_to_handle_at static inline int name_to_handle(int dirfd, const char *name, struct file_handle *fh, int *mnt_id, int flags) { return syscall(__NR_name_to_handle_at, dirfd, name, fh, mnt_id, flags); } #else static inline int name_to_handle(int dirfd, const char *name, struct file_handle *fh, int *mnt_id, int flags) { errno = ENOSYS; return -1; } -aneesh