Re: [Qemu-devel] [PATCH v2 1/2] 9pfs: fix O_PATH build break with older glibc versions

2017-03-06 Thread Eric Blake
On 03/06/2017 02:29 AM, Greg Kurz wrote: > When O_PATH is used with O_DIRECTORY, it only acts as an optimization: the > openat() syscall simply finds the name in the VFS, and doesn't trigger the > underlying filesystem. > > On systems that don't define O_PATH, because they have glibc version 2.13

[Qemu-devel] [PATCH v2 1/2] 9pfs: fix O_PATH build break with older glibc versions

2017-03-06 Thread Greg Kurz
When O_PATH is used with O_DIRECTORY, it only acts as an optimization: the openat() syscall simply finds the name in the VFS, and doesn't trigger the underlying filesystem. On systems that don't define O_PATH, because they have glibc version 2.13 or older for example, we can safely omit it. We don