* [PATCH] utils/mount/nfs.man: add noalignwrite
@ 2025-03-10 12:04 Dan Aloni
2025-03-10 12:12 ` Jeff Layton
0 siblings, 1 reply; 4+ messages in thread
From: Dan Aloni @ 2025-03-10 12:04 UTC (permalink / raw)
To: steved; +Cc: linux-nfs
Signed-off-by: Dan Aloni <dan.aloni@vastdata.com>
---
utils/mount/nfs.man | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/utils/mount/nfs.man b/utils/mount/nfs.man
index eab4692a87de..744411688641 100644
--- a/utils/mount/nfs.man
+++ b/utils/mount/nfs.man
@@ -618,6 +618,17 @@ option is not specified,
the default behavior depends on the kernel version,
but is usually equivalent to
.BR "xprtsec=none" .
+.TP 1.5i
+.BI noalignwrite
+This option disables the default behavior of extending write operations to full
+page boundaries.
+.IP
+Normally, the NFS client rounds non-aligned writes up to the system page size,
+which can lead to "lost writes" when multiple clients write concurrently
+to distinct non-overlapping regions. Use this option when your
+applications perform non-aligned writes and you can guarantee that file
+regions do not overlap, thus avoiding the need for file locking.
+.IP
.SS "Options for NFS versions 2 and 3 only"
Use these options, along with the options in the above subsection,
for NFS versions 2 and 3 only.
--
2.47.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] utils/mount/nfs.man: add noalignwrite
2025-03-10 12:04 [PATCH] utils/mount/nfs.man: add noalignwrite Dan Aloni
@ 2025-03-10 12:12 ` Jeff Layton
2025-03-10 12:52 ` [PATCH v2] " Dan Aloni
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Layton @ 2025-03-10 12:12 UTC (permalink / raw)
To: Dan Aloni, steved; +Cc: linux-nfs
On Mon, 2025-03-10 at 14:04 +0200, Dan Aloni wrote:
> Signed-off-by: Dan Aloni <dan.aloni@vastdata.com>
> ---
> utils/mount/nfs.man | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/utils/mount/nfs.man b/utils/mount/nfs.man
> index eab4692a87de..744411688641 100644
> --- a/utils/mount/nfs.man
> +++ b/utils/mount/nfs.man
> @@ -618,6 +618,17 @@ option is not specified,
> the default behavior depends on the kernel version,
> but is usually equivalent to
> .BR "xprtsec=none" .
> +.TP 1.5i
> +.BI noalignwrite
> +This option disables the default behavior of extending write operations to full
> +page boundaries.
> +.IP
> +Normally, the NFS client rounds non-aligned writes up to the system page size,
Isn't that only true for buffered writes? That should probably be made
clear if so.
> +which can lead to "lost writes" when multiple clients write concurrently
> +to distinct non-overlapping regions. Use this option when your
> +applications perform non-aligned writes and you can guarantee that file
> +regions do not overlap, thus avoiding the need for file locking.
> +.IP
> .SS "Options for NFS versions 2 and 3 only"
> Use these options, along with the options in the above subsection,
> for NFS versions 2 and 3 only.
--
Jeff Layton <jlayton@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2] utils/mount/nfs.man: add noalignwrite
2025-03-10 12:12 ` Jeff Layton
@ 2025-03-10 12:52 ` Dan Aloni
2025-03-24 20:28 ` Steve Dickson
0 siblings, 1 reply; 4+ messages in thread
From: Dan Aloni @ 2025-03-10 12:52 UTC (permalink / raw)
To: steved; +Cc: linux-nfs
Signed-off-by: Dan Aloni <dan.aloni@vastdata.com>
---
utils/mount/nfs.man | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/utils/mount/nfs.man b/utils/mount/nfs.man
index eab4692a87de..b5c5913bf315 100644
--- a/utils/mount/nfs.man
+++ b/utils/mount/nfs.man
@@ -618,6 +618,17 @@ option is not specified,
the default behavior depends on the kernel version,
but is usually equivalent to
.BR "xprtsec=none" .
+.TP 1.5i
+.BI noalignwrite
+This option disables the default behavior of extending buffered write operations
+to full page boundaries.
+.IP
+Normally, the NFS client rounds non-aligned buffered writes up to the system
+page size, which can lead to "lost writes" when multiple clients write
+concurrently to distinct non-overlapping regions. Use this option when your
+applications perform non-aligned buffered writes and you can guarantee that file
+regions do not overlap, thus avoiding the need for file locking.
+.IP
.SS "Options for NFS versions 2 and 3 only"
Use these options, along with the options in the above subsection,
for NFS versions 2 and 3 only.
--
2.47.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] utils/mount/nfs.man: add noalignwrite
2025-03-10 12:52 ` [PATCH v2] " Dan Aloni
@ 2025-03-24 20:28 ` Steve Dickson
0 siblings, 0 replies; 4+ messages in thread
From: Steve Dickson @ 2025-03-24 20:28 UTC (permalink / raw)
To: Dan Aloni; +Cc: linux-nfs
On 3/10/25 8:52 AM, Dan Aloni wrote:
> Signed-off-by: Dan Aloni <dan.aloni@vastdata.com>
Committed... (tag: nfs-utils-2-8-3-rc8)
steved
> ---
> utils/mount/nfs.man | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/utils/mount/nfs.man b/utils/mount/nfs.man
> index eab4692a87de..b5c5913bf315 100644
> --- a/utils/mount/nfs.man
> +++ b/utils/mount/nfs.man
> @@ -618,6 +618,17 @@ option is not specified,
> the default behavior depends on the kernel version,
> but is usually equivalent to
> .BR "xprtsec=none" .
> +.TP 1.5i
> +.BI noalignwrite
> +This option disables the default behavior of extending buffered write operations
> +to full page boundaries.
> +.IP
> +Normally, the NFS client rounds non-aligned buffered writes up to the system
> +page size, which can lead to "lost writes" when multiple clients write
> +concurrently to distinct non-overlapping regions. Use this option when your
> +applications perform non-aligned buffered writes and you can guarantee that file
> +regions do not overlap, thus avoiding the need for file locking.
> +.IP
> .SS "Options for NFS versions 2 and 3 only"
> Use these options, along with the options in the above subsection,
> for NFS versions 2 and 3 only.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-03-24 20:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-10 12:04 [PATCH] utils/mount/nfs.man: add noalignwrite Dan Aloni
2025-03-10 12:12 ` Jeff Layton
2025-03-10 12:52 ` [PATCH v2] " Dan Aloni
2025-03-24 20:28 ` Steve Dickson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox