textual: fix typos, and rephrase some things for clarity

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
This commit is contained in:
Benno Schulenberg 2010-06-10 14:27:34 +02:00 committed by Karel Zak
parent 333ec74962
commit d0bb6987a8
7 changed files with 55 additions and 55 deletions

View File

@ -935,7 +935,7 @@ static void process_command (const struct command_struct *command)
execlp (get_path (victim->first_service->name), execlp (get_path (victim->first_service->name),
victim->first_service->name, "stop", NULL); victim->first_service->name, "stop", NULL);
snprintf (txt, sizeof(txt), snprintf (txt, sizeof(txt),
_("error stopping service: \"%s\"\n"), _("error at stopping service \"%s\"\n"),
victim->first_service->name); victim->first_service->name);
err (txt); err (txt);
_exit (SIG_NOT_STOPPED); _exit (SIG_NOT_STOPPED);
@ -1067,7 +1067,7 @@ static int run_command (const char *file, const char *name, pid_t pid)
for (i = 1; i < NSIG; i++) signal (i, SIG_DFL); for (i = 1; i < NSIG; i++) signal (i, SIG_DFL);
execlp (get_path (file), service->name, "start", NULL); execlp (get_path (file), service->name, "start", NULL);
snprintf (txt, sizeof(txt), snprintf (txt, sizeof(txt),
_("error running programme: \"%s\"\n"), service->name); _("error at starting service \"%s\"\n"), service->name);
err (txt); err (txt);
_exit (SIG_FAILED); _exit (SIG_FAILED);
break; break;

View File

@ -18,9 +18,9 @@ findmnt \- find a filesystem
.IR mountpoint .IR mountpoint
.SH DESCRIPTION .SH DESCRIPTION
.B findmnt .B findmnt
will list all mounted filesytems or search for a filesystem. The will list all mounted filesytems or search for a filesystem. The
.B findmnt .B findmnt
is able to search in command is able to search in
.IR /etc/fstab , .IR /etc/fstab ,
.IR /etc/mtab .IR /etc/mtab
or or
@ -29,9 +29,9 @@ If
.IR device .IR device
or or
.IR mountpoint .IR mountpoint
is not given, all filesystems are show. is not given, all filesystems are shown.
.PP .PP
The command prints all mounted filesystems in tree-like format by default. The command prints all mounted filesystems in the tree-like format by default.
.SH OPTIONS .SH OPTIONS
.IP "\fB\-h, \-\-help\fP" .IP "\fB\-h, \-\-help\fP"
Print help and exit. Print help and exit.
@ -46,11 +46,11 @@ The output is in the list format (see --list).
.IP "\fB\-k, \-\-kernel\fP" .IP "\fB\-k, \-\-kernel\fP"
Search in Search in
.IR /proc/self/mountinfo . .IR /proc/self/mountinfo .
The output is in the tree-like format. This is the default. The output is in the tree-like format. This is the default.
.IP "\fB\-c, \-\-canonicalize\fP" .IP "\fB\-c, \-\-canonicalize\fP"
Canonicalize all printed paths. Canonicalize all printed paths.
.IP "\fB\-d, \-\-direction \fIword\fP" .IP "\fB\-d, \-\-direction \fIword\fP"
Search direction - The search direction -
.IR forward .IR forward
or or
.IR backward . .IR backward .
@ -59,34 +59,34 @@ Convert all tags (LABEL or UUID) to the device names.
.IP "\fB\-f, \-\-first-only\fP" .IP "\fB\-f, \-\-first-only\fP"
Print the first matching filesystem only. Print the first matching filesystem only.
.IP "\fB\-i, \-\-invert\fP" .IP "\fB\-i, \-\-invert\fP"
Invert sense of matching. Invert the sense of matching.
.IP "\fB\-l, \-\-list\fP" .IP "\fB\-l, \-\-list\fP"
Use list output format. Use the list output format.
.IP "\fB\-n, \-\-noheadings\fP" .IP "\fB\-n, \-\-noheadings\fP"
Do not print header line. Do not print a header line.
.IP "\fB\-u, \-\-notruncate\fP" .IP "\fB\-u, \-\-notruncate\fP"
Do not truncate text in columns. The default is not truncate Do not truncate text in columns. The default is to not truncate the
.BR TARGET , .BR TARGET ,
.BR SOURCE , .BR SOURCE ,
.BR UUID .BR UUID
and and
.BR LABEL .BR LABEL
columns. This option disables text truncation in the all others columns. columns. This option disables text truncation also in all other columns.
.IP "\fB\-O, \-\-options \fIlist\fP" .IP "\fB\-O, \-\-options \fIlist\fP"
Used to limit the set of printed filesystems. More than one option Used to limit the set of printed filesystems. More than one option
may be specified in a comma separated list. The may be specified in a comma-separated list. The
.B \-t .B \-t
and and
.B \-O .B \-O
options are cumulative in effect. It is different from options are cumulative in effect. It is different from
.B \-t .B \-t
in that each option is matched exactly; a leading in that each option is matched exactly; a leading
.I no .I no
at the beginning at the beginning
of one option does not negate the rest. For more details see of one option does not negate the rest. For more details see
.BR mount (8). .BR mount (8).
.IP "\fB\-o, \-\-output \fIlist\fP" .IP "\fB\-o, \-\-output \fIlist\fP"
Define output columns. Currently are supported Define output columns. Currently supported are
.BR SOURCE , .BR SOURCE ,
.BR TARGET , .BR TARGET ,
.BR FSTYPE , .BR FSTYPE ,
@ -106,19 +106,19 @@ options are not specified.
.IP "\fB\-r, \-\-raw\fP" .IP "\fB\-r, \-\-raw\fP"
Use raw output format. Use raw output format.
.IP "\fB\-a, \-\-ascii\fP" .IP "\fB\-a, \-\-ascii\fP"
Use ascii chars for tree formatting. Use ascii characters for tree formatting.
.IP "\fB\-t, \-\-types \fIlist\fP" .IP "\fB\-t, \-\-types \fIlist\fP"
Used to limit the set of printed filesystems. More than one type may be Used to limit the set of printed filesystems. More than one type may be
specified in a comma separated list. The list of filesystem types can be specified in a comma-separated list. The list of filesystem types can be
prefixed with prefixed with
.I no .I no
to specify the filesystem types on which no action should be taken. For to specify the filesystem types on which no action should be taken. For
more details see more details see
.BR mount (8). .BR mount (8).
.IP "\fB\-S, \-\-source \fIspec\fP" .IP "\fB\-S, \-\-source \fIspec\fP"
Explicitly define mount source. Supported are device, LABEL= or UUID=. Explicitly define the mount source. Supported are device, LABEL= or UUID=.
.IP "\fB\-T, \-\-target \fIdir\fP" .IP "\fB\-T, \-\-target \fIdir\fP"
Explicitly define mount target (mountpoint directory). Explicitly define the mount target (mountpoint directory).
.SH EXAMPLES .SH EXAMPLES
.IP "\fBfindmnt \-\-fstab \-t nfs\fP" .IP "\fBfindmnt \-\-fstab \-t nfs\fP"
Prints all nfs filesystems defined in Prints all nfs filesystems defined in
@ -126,18 +126,18 @@ Prints all nfs filesystems defined in
.IP "\fBfindmnt \-\-fstab /mnt/foo\fP" .IP "\fBfindmnt \-\-fstab /mnt/foo\fP"
Prints all Prints all
.IR /etc/fstab .IR /etc/fstab
filesystems where mountpoint directory is /mnt/foo. It also prints bind mounts where /mnt/foo filesystems where the mountpoint directory is /mnt/foo. It also prints bind mounts where /mnt/foo
is a source. is a source.
.IP "\fBfindmnt \-\-fstab --target /mnt/foo\fP" .IP "\fBfindmnt \-\-fstab --target /mnt/foo\fP"
Prints all Prints all
.IR /etc/fstab .IR /etc/fstab
filesystems where mountpoint directory is /mnt/foo. filesystems where the mountpoint directory is /mnt/foo.
.IP "\fBfindmnt --fstab --evaluate\fP" .IP "\fBfindmnt --fstab --evaluate\fP"
Prints all Prints all
.IR /etc/fstab .IR /etc/fstab
filesystems and converts LABEL= and UUID= tags to the real device names. filesystems and converts LABEL= and UUID= tags to the real device names.
.IP "\fBfindmnt -n --raw --evaluate --output=target LABEL=/boot .IP "\fBfindmnt -n --raw --evaluate --output=target LABEL=/boot
Prints only mountpoint where is mounted filesystem with a label "/boot". Prints only the mountpoint where the filesystem with label "/boot" is mounted.
.SH AUTHORS .SH AUTHORS
.nf .nf
Karel Zak <kzak@redhat.com> Karel Zak <kzak@redhat.com>

View File

@ -9,26 +9,26 @@ namei - follow a pathname until a terminal point is found
.RI [ options ] .RI [ options ]
.IR pathname ... .IR pathname ...
.SH DESCRIPTION .SH DESCRIPTION
.B Namei .B namei
uses its arguments as pathnames to any type uses its arguments as pathnames to any type
of Unix file (symlinks, files, directories, and so forth). of Unix file (symlinks, files, directories, and so forth).
.B Namei .B namei
then follows each pathname until a terminal then follows each pathname until an endpoint
point is found (a file, directory, char device, etc). is found (a file, a directory, a device node, etc).
If it finds a symbolic link, we show the link, and start If it finds a symbolic link, it shows the link, and starts
following it, indenting the output to show the context. following it, indenting the output to show the context.
.PP .PP
This program is useful for finding a "too many levels of This program is useful for finding "too many levels of
symbolic links" problems. symbolic links" problems.
.PP .PP
For each line output, For each line of output,
.B namei .B namei
outputs a the following characters to identify the file types found: uses the following characters to identify the file type found:
.LP .LP
.nf .nf
f: = the pathname we are currently trying to resolve f: = the pathname currently being resolved
d = directory d = directory
l = symbolic link (both the link and it's contents are output) l = symbolic link (both the link and its contents are output)
s = socket s = socket
b = block device b = block device
c = character device c = character device
@ -37,12 +37,12 @@ outputs a the following characters to identify the file types found:
? = an error of some kind ? = an error of some kind
.fi .fi
.PP .PP
.B Namei .B namei
prints an informative message when prints an informative message when
the maximum number of symbolic links this system can have has been exceeded. the maximum number of symbolic links this system can have has been exceeded.
.SH OPTIONS .SH OPTIONS
.IP "\fB\-l, \-\-long\fP" .IP "\fB\-l, \-\-long\fP"
Use a long listing format (same as -m -o -v). Use the long listing format (same as -m -o -v).
.IP "\fB\-m, \-\-modes\fP" .IP "\fB\-m, \-\-modes\fP"
Show the mode bits of each file type in the style of ls(1), Show the mode bits of each file type in the style of ls(1),
for example 'rwxr-xr-x'. for example 'rwxr-xr-x'.
@ -51,9 +51,9 @@ Show owner and group name of each file.
.IP "\fB\-n, \-\-nosymlinks\fP" .IP "\fB\-n, \-\-nosymlinks\fP"
Don't follow symlinks. Don't follow symlinks.
.IP "\fB\-v, \-\-vertical\fP" .IP "\fB\-v, \-\-vertical\fP"
Vertical align of modes and owners. Vertically align the modes and owners.
.IP "\fB\-x, \-\-mountpoints\fP" .IP "\fB\-x, \-\-mountpoints\fP"
Show mount point directories with a 'D', rather than a 'd'. Show mountpoint directories with a 'D' rather than a 'd'.
.SH AUTHOR .SH AUTHOR
The original The original
.B namei .B namei

View File

@ -27,9 +27,9 @@ uuidd \- UUID generation daemon
The The
.B uuidd .B uuidd
daemon is used by the UUID library to generate daemon is used by the UUID library to generate
universally unique identifiers (UUIDs), especially time-based UUIDs universally unique identifiers (UUIDs), especially time-based UUIDs,
in a secure and guaranteed-unique fashion, even in the face of large in a secure and guaranteed-unique fashion, even in the face of large
numbers of threads trying to grab UUIDs running on different CPUs. numbers of threads running on different CPUs trying to grab UUIDs.
.SH OPTIONS .SH OPTIONS
.TP .TP
.B \-d .B \-d
@ -38,7 +38,7 @@ Run
in debugging mode. This prevents uuidd from running as a daemon. in debugging mode. This prevents uuidd from running as a daemon.
.TP .TP
.B \-k .B \-k
If a currently uuidd daemon is running, kill it. If currently a uuidd daemon is running, kill it.
.TP .TP
.BI \-n " number" .BI \-n " number"
When issuing a test request to a running uuidd, request a bulk response When issuing a test request to a running uuidd, request a bulk response

View File

@ -256,8 +256,8 @@ do_wipe_offset(int fd, struct wipe_desc *wp, const char *fname, int noact)
size_t len; size_t len;
if (!wp->type) { if (!wp->type) {
warnx(_("can't found a magic string at offset " warnx(_("no magic string found at offset "
"0x%jx - ignore."), wp->offset); "0x%jx -- ignored"), wp->offset);
return 0; return 0;
} }
@ -309,7 +309,7 @@ strtoll_offset(const char *str)
uintmax_t sz; uintmax_t sz;
if (strtosize(str, &sz)) if (strtosize(str, &sz))
errx(EXIT_FAILURE, _("invalid offset '%s' value specified"), str); errx(EXIT_FAILURE, _("invalid offset value '%s' specified"), str);
return sz; return sz;
} }
@ -322,8 +322,8 @@ usage(FILE *out)
fprintf(out, _( fprintf(out, _(
" -a, --all wipe all magic strings (BE CAREFUL!)\n" " -a, --all wipe all magic strings (BE CAREFUL!)\n"
" -h, --help this help\n" " -h, --help show this help text\n"
" -n, --no-act everything to be done except for the write() call\n" " -n, --no-act do everything except the actual write() call\n"
" -o, --offset <num> offset to erase, in bytes\n" " -o, --offset <num> offset to erase, in bytes\n"
" -p, --parsable print out in parsable instead of printable format\n")); " -p, --parsable print out in parsable instead of printable format\n"));

View File

@ -275,7 +275,7 @@ umount_one (const char *spec, const char *node, const char *type,
if (res >= 0) { if (res >= 0) {
/* Umount succeeded */ /* Umount succeeded */
if (verbose) if (verbose)
printf (_("%s umounted\n"), spec); printf (_("%s has been unmounted\n"), spec);
/* Free any loop devices that we allocated ourselves */ /* Free any loop devices that we allocated ourselves */
if (mc) { if (mc) {
@ -490,13 +490,13 @@ umount_file (char *arg) {
int ok; int ok;
if (!*arg) { /* "" would be expanded to `pwd` */ if (!*arg) { /* "" would be expanded to `pwd` */
die(2, _("Cannot umount \"\"\n")); die(2, _("Cannot unmount \"\"\n"));
return 0; return 0;
} }
file = canonicalize(arg); /* mtab paths are canonicalized */ file = canonicalize(arg); /* mtab paths are canonicalized */
if (verbose > 1) if (verbose > 1)
printf(_("Trying to umount %s\n"), file); printf(_("Trying to unmount %s\n"), file);
mc = getmntdirbackward(file, NULL); mc = getmntdirbackward(file, NULL);
if (!mc) { if (!mc) {
@ -514,8 +514,8 @@ umount_file (char *arg) {
if (strcmp(file, mc1->m.mnt_fsname)) { if (strcmp(file, mc1->m.mnt_fsname)) {
/* Something was stacked over `file' on the /* Something was stacked over `file' on the
same mount point. */ same mount point. */
die(EX_FAIL, _("umount: cannot umount %s -- %s is " die(EX_FAIL, _("umount: cannot unmount %s -- %s is "
"mounted over it on the same point."), "mounted over it on the same point"),
file, mc1->m.mnt_fsname); file, mc1->m.mnt_fsname);
} }
} }

View File

@ -362,7 +362,7 @@ read_basicinfo(struct lscpu_desc *desc)
/* the root is '/' so we are working with data from the current kernel */ /* the root is '/' so we are working with data from the current kernel */
maxcpus = get_max_number_of_cpus(); maxcpus = get_max_number_of_cpus();
else else
/* we are reading some /sys snapshot instead the real /sys, /* we are reading some /sys snapshot instead of the real /sys,
* let's use any crazy number... */ * let's use any crazy number... */
maxcpus = desc->ncpus > 2048 ? desc->ncpus : 2048; maxcpus = desc->ncpus > 2048 ? desc->ncpus : 2048;
} }