Document flag introduced in Linux v6.9.
Cc: Rich Felker <dalias@libc.org>
Cc: Christian Brauner <brauner@kernel.org>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Message-ID: <
20241126090847.297371-2-john.g.garry@oracle.com>
[alx: wfix, srcfix]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
.I offset
argument is \-1, the current file offset is updated.
.TP
+.BR RWF_NOAPPEND " (since Linux 6.9)"
+Do not honor the
+.B O_APPEND
+.BR open (2)
+flag.
+This flag is meaningful only for
+.BR pwritev2 ().
+Historically,
+Linux honored
+.B O_APPEND
+flag if set and ignored the offset argument,
+which is a bug.
+For
+.BR pwritev2 (),
+the
+.I offset
+argument is honored as expected if
+.B RWF_NOAPPEND
+flag is set,
+the same as if
+.B O_APPEND
+flag were not set.
+.TP
.BR RWF_ATOMIC " (since Linux 6.11)"
Requires that
writes to regular files in block-based filesystems