Re: [PATCH v2 1/5] 9pfs: fix qemu_mknodat(S_IFREG) on macOS

2022-04-21 Thread Greg Kurz
On Thu, 21 Apr 2022 17:07:38 +0200 Christian Schoenebeck wrote: > mknod() on macOS does not support creating regular files, so > divert to openat_file() if S_IFREG is passed with mode argument. > > Furthermore, 'man 2 mknodat' on Linux says: "Zero file type is > equivalent to type S_IFREG". > >

[PATCH v2 1/5] 9pfs: fix qemu_mknodat(S_IFREG) on macOS

2022-04-21 Thread Christian Schoenebeck
mknod() on macOS does not support creating regular files, so divert to openat_file() if S_IFREG is passed with mode argument. Furthermore, 'man 2 mknodat' on Linux says: "Zero file type is equivalent to type S_IFREG". Link: https://lore.kernel.org/qemu-devel/17933734.zYzKuhC07K@silver/ Signed-off