Skip to contentSkip to conversation

man2: Document RWF_NOAPPEND

PATCH Applied John Garry 2 participants 10 messages Nov 26, 2024 – Jan 4, 2025

Subsystems (2)
lore
Share & tools
lore

John Garry

author
#0 lore raw

cover man2: Document RWF_NOAPPEND

This provides an update for Linux pwritev2 flag RWF_NOAPPEND.

John Garry (2):
readv.2: Document RWF_NOAPPEND flag
io_submit.2: Document RWF_NOAPPEND flag

 man/man2/io_submit.2 | 10 ++++++++++
 man/man2/readv.2     | 20 ++++++++++++++++++++
 2 files changed, 30 insertions(+)
Signature · 1 line
2.31.1
author
#1 lore raw

PATCH 1/2 readv.2: Document RWF_NOAPPEND flag

Document flag introduced in Linux v6.9

---
 man/man2/readv.2 | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
man/man2/readv.2 +20 -0
index 78232c19f..836612bbe 100644
@@ -238,6 +238,26 @@ However, if the
 .I offset
 argument is \-1, the current file offset is updated.
 .TP
+.BR RWF_NOAPPEND " (since Linux 6.9)"
+The
+.BR pwritev2 ()
+system call does not honor the
+.B O_APPEND
+.BR open (2)
+flag.
+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
+.BR 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
Signature · 1 line
2.31.1
#2 lore raw

Re: [PATCH 1/2] readv.2: Document RWF_NOAPPEND flag

Hi John,

Quoted 12 lines · John Garry

Document flag introduced in Linux v6.9

---
 man/man2/readv.2 | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
man/man2/readv.2 +0 -0
index 78232c19f..836612bbe 100644

man/man2/readv.2 However, if the · line 244

Quoted 7 lines
man/man2/readv.2 +4 -0
@@ -238,6 +238,26 @@ However, if the
 .I offset
 argument is \-1, the current file offset is updated.
 .TP
+.BR RWF_NOAPPEND " (since Linux 6.9)"
+The
+.BR pwritev2 ()
+system call does not honor the

The other surrounding paragraphs talk in imperative (e.g., "Do not wait"). This should be consistent with them. How about this?:

	Do not honor the O_APPEND open(2) flag.  This flag is meaningful
	only for pwritev2().  ...

Thanks for the patch!

Have a lovely day!
Alex

Quoted 22 lines
man/man2/readv.2 +16 -0
+.B O_APPEND
+.BR open (2)
+flag.
+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
+.BR 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
Signature · 1 line
2.31.1
Signature · 1 line
<https://www.alejandro-colomar.es/>
author
#3 lore raw

Re: [PATCH 1/2] readv.2: Document RWF_NOAPPEND flag

Quoted 25 lines · Alejandro Colomar

Hi John,

Quoted 12 lines · John Garry

Document flag introduced in Linux v6.9

---
  man/man2/readv.2 | 20 ++++++++++++++++++++
  1 file changed, 20 insertions(+)
man/man2/readv.2 +0 -0
index 78232c19f..836612bbe 100644

man/man2/readv.2 However, if the · line 244

Quoted 7 lines
man/man2/readv.2 +4 -0
@@ -238,6 +238,26 @@ However, if the
  .I offset
  argument is \-1, the current file offset is updated.
  .TP
+.BR RWF_NOAPPEND " (since Linux 6.9)"
+The
+.BR pwritev2 ()
+system call does not honor the

The other surrounding paragraphs talk in imperative (e.g., "Do not wait"). This should be consistent with them. How about this?:

Quoted 3 lines
	Do not honor the O_APPEND open(2) flag.  This flag is meaningful
	only for pwritev2().  ...

That sounds fine.

Quoted 1 line

Thanks for the patch!

No worries. Let's wait a bit to see if any comments from fsdevel people.

Thanks,
John

maintainer Applied
#4 lore raw

Re: [PATCH 1/2] readv.2: Document RWF_NOAPPEND flag

Hi John,

Quoted 30 lines · John Garry
Quoted 25 lines · Alejandro Colomar

Hi John,

Quoted 12 lines · John Garry

Document flag introduced in Linux v6.9

---
  man/man2/readv.2 | 20 ++++++++++++++++++++
  1 file changed, 20 insertions(+)
man/man2/readv.2 +0 -0
index 78232c19f..836612bbe 100644

man/man2/readv.2 However, if the · line 244

Quoted 7 lines
man/man2/readv.2 +4 -0
@@ -238,6 +238,26 @@ However, if the
  .I offset
  argument is \-1, the current file offset is updated.
  .TP
+.BR RWF_NOAPPEND " (since Linux 6.9)"
+The
+.BR pwritev2 ()
+system call does not honor the

The other surrounding paragraphs talk in imperative (e.g., "Do not wait"). This should be consistent with them. How about this?:

Quoted 3 lines
	Do not honor the O_APPEND open(2) flag.  This flag is meaningful
	only for pwritev2().  ...
Quoted 5 lines

That sounds fine.

Quoted 1 line

Thanks for the patch!

No worries. Let's wait a bit to see if any comments from fsdevel people.

I've applied this patch already. Thanks!
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=64fc4bb4ae09a4559a5789a6ede952c0f8570b39>

Cheers,
Alex

Quoted 4 lines

Thanks,
John

Signature · 1 line
<https://www.alejandro-colomar.es/>
author
#5 lore raw

PATCH 2/2 io_submit.2: Document RWF_NOAPPEND flag

In reply to John Garry

Document flag introduced in Linux v6.9

---
 man/man2/io_submit.2 | 10 ++++++++++
 1 file changed, 10 insertions(+)
man/man2/io_submit.2 +10 -0
index c3d86b4c4..64292037d 100644
@@ -141,6 +141,16 @@ as well the description of
 in
 .BR open (2).
 .TP
+.BR RWF_NOAPPEND " (since Linux 6.9)"
+Do not honor
+.B O_APPEND
+.BR open (2)
+flag.
+See the description of
+.B RWF_NOAPPEND
+in
+.BR pwritev2 (2).
+.TP
 .BR RWF_ATOMIC " (since Linux 6.11)"
 Write a block of data such that
 a write will never be torn from power fail or similar.
Signature · 1 line
2.31.1
#6 lore raw

Re: [PATCH 2/2] io_submit.2: Document RWF_NOAPPEND flag

Hi John,

Quoted 3 lines · John Garry

Document flag introduced in Linux v6.9

Please add the Cc:s also to the patch trailer section. (That means less work for me pasting them.:)

Quoted 11 lines
---
 man/man2/io_submit.2 | 10 ++++++++++
 1 file changed, 10 insertions(+)
man/man2/io_submit.2 +0 -0
index c3d86b4c4..64292037d 100644
@@ -141,6 +141,16 @@ as well the description of
 in
 .BR open (2).

man/man2/io_submit.2 as well the description of · line 152

Quoted 10 lines
man/man2/io_submit.2 +9 -0
 .TP
+.BR RWF_NOAPPEND " (since Linux 6.9)"
+Do not honor
+.B O_APPEND
+.BR open (2)
+flag.
+See the description of
+.B RWF_NOAPPEND
+in
+.BR pwritev2 (2).

LGTM. Thanks! I'll wait to apply it once patch 1/2 is applied.

Have a lovely day!
Alex

Quoted 7 lines
man/man2/io_submit.2 +1 -0
+.TP
 .BR RWF_ATOMIC " (since Linux 6.11)"
 Write a block of data such that
 a write will never be torn from power fail or similar.
Signature · 1 line
2.31.1
Signature · 1 line
<https://www.alejandro-colomar.es/>
maintainer Applied
#7 lore raw

Re: [PATCH 2/2] io_submit.2: Document RWF_NOAPPEND flag

In reply to John Garry

Hi John,

Quoted 3 lines · John Garry

Document flag introduced in Linux v6.9

I've applied this patch. Thanks!
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=58dcfdd953c1546cb6aea81c2209d6bb076dc246>

Cheers,
Alex

Quoted 28 lines
---
 man/man2/io_submit.2 | 10 ++++++++++
 1 file changed, 10 insertions(+)
man/man2/io_submit.2 +10 -0
index c3d86b4c4..64292037d 100644
@@ -141,6 +141,16 @@ as well the description of
 in
 .BR open (2).
 .TP
+.BR RWF_NOAPPEND " (since Linux 6.9)"
+Do not honor
+.B O_APPEND
+.BR open (2)
+flag.
+See the description of
+.B RWF_NOAPPEND
+in
+.BR pwritev2 (2).
+.TP
 .BR RWF_ATOMIC " (since Linux 6.11)"
 Write a block of data such that
 a write will never be torn from power fail or similar.
Signature · 1 line
2.31.1
Signature · 1 line
<https://www.alejandro-colomar.es/>
author
#8 lore raw
In reply to John Garry
Quoted 1 line · John Garry

This provides an update for Linux pwritev2 flag RWF_NOAPPEND.

Hi Alex,

I'd say that it is ok to merge these changes now (with your suggested modifications), as no one seems to care.

Thanks,
John

Quoted 9 lines

John Garry (2):
readv.2: Document RWF_NOAPPEND flag
io_submit.2: Document RWF_NOAPPEND flag

  man/man2/io_submit.2 | 10 ++++++++++
  man/man2/readv.2     | 20 ++++++++++++++++++++
  2 files changed, 30 insertions(+)
#9 lore raw
Quoted 7 lines · John Garry
Quoted 1 line · John Garry

This provides an update for Linux pwritev2 flag RWF_NOAPPEND.

Hi Alex,

I'd say that it is ok to merge these changes now (with your suggested modifications), as no one seems to care.

Hi John,

Sorry for the delay. Would you mind sending updated patches with the minor fixes I suggested? Thanks!

Cheers,
Alex

Quoted 14 lines

Thanks,
John

Quoted 9 lines

John Garry (2):
readv.2: Document RWF_NOAPPEND flag
io_submit.2: Document RWF_NOAPPEND flag

  man/man2/io_submit.2 | 10 ++++++++++
  man/man2/readv.2     | 20 ++++++++++++++++++++
  2 files changed, 30 insertions(+)
Signature · 1 line
<https://www.alejandro-colomar.es/>