Re: [PATCH v2] vfs: add RWF_NOAPPEND flag for pwritev2

2020-08-31 Thread Jens Axboe
On 8/31/20 9:46 AM, Jann Horn wrote: > On Mon, Aug 31, 2020 at 5:32 PM Rich Felker wrote: >> The pwrite function, originally defined by POSIX (thus the "p"), is >> defined to ignore O_APPEND and write at the offset passed as its >> argument. However, historically Linux honored O_APPEND if set and

Re: [PATCH v2] vfs: add RWF_NOAPPEND flag for pwritev2

2020-08-31 Thread Jann Horn
On Mon, Aug 31, 2020 at 5:32 PM Rich Felker wrote: > The pwrite function, originally defined by POSIX (thus the "p"), is > defined to ignore O_APPEND and write at the offset passed as its > argument. However, historically Linux honored O_APPEND if set and > ignored the offset. This cannot be

[PATCH v2] vfs: add RWF_NOAPPEND flag for pwritev2

2020-08-31 Thread Rich Felker
The pwrite function, originally defined by POSIX (thus the "p"), is defined to ignore O_APPEND and write at the offset passed as its argument. However, historically Linux honored O_APPEND if set and ignored the offset. This cannot be changed due to stability policy, but is documented in the man