]> git.proxmox.com Git - mirror_qemu.git/commit
9p: darwin: Ignore O_{NOATIME, DIRECT}
authorKeno Fischer <keno@juliacomputing.com>
Sun, 27 Feb 2022 22:35:16 +0000 (17:35 -0500)
committerChristian Schoenebeck <qemu_oss@crudebyte.com>
Mon, 7 Mar 2022 10:49:31 +0000 (11:49 +0100)
commit67a71e3b71a2834d028031a92e76eb9444e423c6
tree42f825544be2c4d3904fc3963cf4cf5bf834910b
parent6b3b279bd670c6a2fa23c9049820c814f0e2c846
9p: darwin: Ignore O_{NOATIME, DIRECT}

Darwin doesn't have either of these flags. Darwin does have
F_NOCACHE, which is similar to O_DIRECT, but has different
enough semantics that other projects don't generally map
them automatically. In any case, we don't support O_DIRECT
on Linux at the moment either.

Signed-off-by: Keno Fischer <keno@juliacomputing.com>
[Michael Roitzsch: - Rebase for NixOS]
Signed-off-by: Michael Roitzsch <reactorcontrol@icloud.com>
[Will Cohen: - Adjust coding style]
Signed-off-by: Will Cohen <wwcohen@gmail.com>
Message-Id: <20220227223522.91937-6-wwcohen@gmail.com>
[C.S.: - Fix compiler warning "unused label 'again'". ]
Link: https://lore.kernel.org/qemu-devel/11201492.CjeqJxXfGd@silver/
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
hw/9pfs/9p-util.h
hw/9pfs/9p.c