Linux NFS development
 help / color / mirror / Atom feed
* [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

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