|
|
c2a259 |
From 4c8988667193cbd405eae05518425905db517626 Mon Sep 17 00:00:00 2001
|
|
|
c2a259 |
From: Jan Chaloupka <jchaloup@redhat.com>
|
|
|
c2a259 |
Date: Wed, 30 Jul 2014 17:35:04 +0200
|
|
|
c2a259 |
Subject: [PATCH] open.2
|
|
|
c2a259 |
|
|
|
c2a259 |
---
|
|
|
c2a259 |
man-pages/man2/open.2 | 17 ++++++++++++-----
|
|
|
c2a259 |
1 file changed, 12 insertions(+), 5 deletions(-)
|
|
|
c2a259 |
|
|
|
c2a259 |
diff --git a/man-pages/man2/open.2 b/man-pages/man2/open.2
|
|
|
c2a259 |
index 84331c6..6b25e7b 100644
|
|
|
c2a259 |
--- a/man-pages/man2/open.2
|
|
|
c2a259 |
+++ b/man-pages/man2/open.2
|
|
|
c2a259 |
@@ -875,10 +875,16 @@ for doing so, for example the
|
|
|
c2a259 |
operation in
|
|
|
c2a259 |
.BR xfsctl (3).
|
|
|
c2a259 |
.LP
|
|
|
c2a259 |
-Under Linux 2.4, transfer sizes, and the alignment of the user buffer
|
|
|
c2a259 |
-and the file offset must all be multiples of the logical block size
|
|
|
c2a259 |
-of the file system.
|
|
|
c2a259 |
-Under Linux 2.6, alignment to 512-byte boundaries suffices.
|
|
|
c2a259 |
+Under Linux 2.4, transfer sizes, and the alignment of the user buffer
|
|
|
c2a259 |
+and the file offset must all be multiples of the logical block size of
|
|
|
c2a259 |
+the filesystem. Since Linux 2.6.0, alignment to the logical block size
|
|
|
c2a259 |
+of the underlying storage (typically 512 bytes) suffices. The logical
|
|
|
c2a259 |
+block size can be determined using the ioctl(2) BLKSSZGET operation or
|
|
|
c2a259 |
+from the shell using the command:
|
|
|
c2a259 |
+
|
|
|
c2a259 |
+.RS
|
|
|
c2a259 |
+.BR blockdev " " --getss
|
|
|
c2a259 |
+.RE
|
|
|
c2a259 |
.LP
|
|
|
c2a259 |
.B O_DIRECT
|
|
|
c2a259 |
I/Os should never be run concurrently with the
|
|
|
c2a259 |
@@ -1010,7 +1016,8 @@ to enable this flag.
|
|
|
c2a259 |
.BR fopen (3),
|
|
|
c2a259 |
.BR fifo (7),
|
|
|
c2a259 |
.BR path_resolution (7),
|
|
|
c2a259 |
-.BR symlink (7)
|
|
|
c2a259 |
+.BR symlink (7),
|
|
|
c2a259 |
+.BR blockdev (8)
|
|
|
c2a259 |
.SH COLOPHON
|
|
|
c2a259 |
This page is part of release 3.53 of the Linux
|
|
|
c2a259 |
.I man-pages
|
|
|
c2a259 |
--
|
|
|
c2a259 |
1.9.3
|
|
|
c2a259 |
|