* [PATCH 1/2] docs: fix some wording, grammar and formatting in man page of swapon
@ 2014-11-03 21:17 Benno Schulenberg
2014-11-03 21:17 ` [PATCH 2/2] swapon: reword some usage strings Benno Schulenberg
2014-11-07 12:12 ` [PATCH 1/2] docs: fix some wording, grammar and formatting in man page of swapon Karel Zak
0 siblings, 2 replies; 3+ messages in thread
From: Benno Schulenberg @ 2014-11-03 21:17 UTC (permalink / raw)
To: util-linux
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
---
disk-utils/fsck.8 | 2 +-
sys-utils/swapon.8 | 26 +++++++++++++-------------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/disk-utils/fsck.8 b/disk-utils/fsck.8
index 531bcf5..7d522ab 100644
--- a/disk-utils/fsck.8
+++ b/disk-utils/fsck.8
@@ -440,7 +440,7 @@ file. It is also useful for developers who are testing
enables libblkid debug output.
.TP
.B LIBMOUNT_DEBUG=all
-enables lilbmount debug output.
+enables libmount debug output.
.SH SEE ALSO
.na
.BR fstab (5),
diff --git a/sys-utils/swapon.8 b/sys-utils/swapon.8
index 84047ae..23da280 100644
--- a/sys-utils/swapon.8
+++ b/sys-utils/swapon.8
@@ -192,40 +192,40 @@ Be verbose.
.BR \-V , " \-\-version"
Display version information and exit.
.SH NOTES
-You should not use swapon on a file with holes. This can be seen in the system
-log as
+You should not use \fBswapon\fR on a file with holes.
+This can be seen in the system log as
.RS
.sp
.B "swapon: swapfile has holes."
.sp
.RE
-The swap file implementation in the kernel expecting to be able to write to the
-file directly, without the assistance of the file system. This is problem on
+The swap file implementation in the kernel expects to be able to write to the
+file directly, without the assistance of the filesystem. This is a problem on
preallocated files (e.g.
-.BR fallocate (1)
-) on filesystems like \fBXFS\fR or \fBext4\fR, and on copy-on-write file
-systems like \fBbtrfs\fR.
+.BR fallocate (1))
+on filesystems like \fBXFS\fR or \fBext4\fR, and on copy-on-write
+filesystems like \fBbtrfs\fR.
.PP
It is recommended to use
-. BR dd (1)
+.BR dd (1)
and
.I /dev/zero
to avoid holes on XFS and ext4.
.PP
.B swapon
may not work correctly when using a swap file with some versions of
-\fBbtrfs\fR. This is due to Since btrfs is a copy-on-write file system, the
+\fBbtrfs\fR. This is due to btrfs being a copy-on-write filesystem: the
file location may not be static and corruption can result. Btrfs actively
-disallows the use of files on its file systems by refusing to map the file.
+disallows the use of swap files on its filesystems by refusing to map the file.
.PP
-One possible workaround is to map the
-file to a loopback device. This will allow the file system to determine the
+One possible workaround is to map the swap
+file to a loopback device. This will allow the filesystem to determine the
mapping properly but may come with a performance impact.
.PP
Swap over \fBNFS\fR may not work.
.PP
.B swapon
-automatically detects and rewrites swap space signature with old software
+automatically detects and rewrites a swap space signature with old software
suspend data (e.g S1SUSPEND, S2SUSPEND, ...). The problem is that if we don't
do it, then we get data corruption the next time an attempt at unsuspending is
made.
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] swapon: reword some usage strings
2014-11-03 21:17 [PATCH 1/2] docs: fix some wording, grammar and formatting in man page of swapon Benno Schulenberg
@ 2014-11-03 21:17 ` Benno Schulenberg
2014-11-07 12:12 ` [PATCH 1/2] docs: fix some wording, grammar and formatting in man page of swapon Karel Zak
1 sibling, 0 replies; 3+ messages in thread
From: Benno Schulenberg @ 2014-11-03 21:17 UTC (permalink / raw)
To: util-linux
Also remove some inconsistent periods and properly punctuate
the closing sentence.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
---
sys-utils/swapon.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c
index 8f7e918..a457607 100644
--- a/sys-utils/swapon.c
+++ b/sys-utils/swapon.c
@@ -756,9 +756,9 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out)
" <file> name of file to be used\n"), out);
fputs(_("\nAvailable discard policy types (for --discard):\n"
- " once : only single-time area discards are issued.\n"
- " pages : discard freed pages before they are reused.\n"
- " * if no policy is selected both discard types are enabled. (default)\n"), out);
+ " once : only single-time area discards are issued\n"
+ " pages : freed pages are discarded before they are reused\n"
+ " If no policy is selected, both discard types are enabled (default).\n"), out);
fputs(_("\nAvailable columns (for --show):\n"), out);
for (i = 0; i < ARRAY_SIZE(infos); i++)
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/2] docs: fix some wording, grammar and formatting in man page of swapon
2014-11-03 21:17 [PATCH 1/2] docs: fix some wording, grammar and formatting in man page of swapon Benno Schulenberg
2014-11-03 21:17 ` [PATCH 2/2] swapon: reword some usage strings Benno Schulenberg
@ 2014-11-07 12:12 ` Karel Zak
1 sibling, 0 replies; 3+ messages in thread
From: Karel Zak @ 2014-11-07 12:12 UTC (permalink / raw)
To: Benno Schulenberg; +Cc: util-linux
On Mon, Nov 03, 2014 at 10:17:16PM +0100, Benno Schulenberg wrote:
> disk-utils/fsck.8 | 2 +-
> sys-utils/swapon.8 | 26 +++++++++++++-------------
> 2 files changed, 14 insertions(+), 14 deletions(-)
both patches applied, thanks!
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-07 12:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-03 21:17 [PATCH 1/2] docs: fix some wording, grammar and formatting in man page of swapon Benno Schulenberg
2014-11-03 21:17 ` [PATCH 2/2] swapon: reword some usage strings Benno Schulenberg
2014-11-07 12:12 ` [PATCH 1/2] docs: fix some wording, grammar and formatting in man page of swapon Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox