Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-03-02 13:56:19 +0300
committerCorinna Vinschen <corinna@vinschen.de>2009-03-02 13:56:19 +0300
commit17a12c5065295a4f6c87cd7cb7bbeac0f5e4b10e (patch)
tree662652cf559ae85104d1bb634b1d57cf1c873ffc /winsup/utils
parent8262e64256c78033641dd1ce6b68452adc2b647f (diff)
* utils.sgml: Set example prompt to "$" throughout. Don't use "/"
as example cygdrive prefix. Remove reference to -u and -s options. Add an example using the -o flag.
Diffstat (limited to 'winsup/utils')
-rw-r--r--winsup/utils/ChangeLog6
-rw-r--r--winsup/utils/utils.sgml30
2 files changed, 25 insertions, 11 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 696b194ab..8ba222ba3 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,5 +1,11 @@
2009-03-02 Corinna Vinschen <corinna@vinschen.de>
+ * utils.sgml: Set example prompt to "$" throughout. Don't use "/"
+ as example cygdrive prefix. Remove reference to -u and -s options.
+ Add an example using the -o flag.
+
+2009-03-02 Corinna Vinschen <corinna@vinschen.de>
+
* mount.cc (mount_entries): Handle a "/" cygdrive prefix correctly.
Add comments.
diff --git a/winsup/utils/utils.sgml b/winsup/utils/utils.sgml
index e71de7d64..1d76451fd 100644
--- a/winsup/utils/utils.sgml
+++ b/winsup/utils/utils.sgml
@@ -181,7 +181,7 @@ When asked to run this command save the output so that you can email it,
for example:</para>
<screen>
-<prompt>C:\cygwin&gt;</prompt> <userinput>cygcheck -s -v -r -h &gt; cygcheck_output.txt</userinput>
+<prompt>$</prompt> <userinput>cygcheck -s -v -r -h &gt; cygcheck_output.txt</userinput>
</screen>
</sect2>
@@ -731,7 +731,7 @@ will display the current mount table for you.</para>
<example id="utils-mount-ex">
<title>Displaying the current set of mount points</title>
<screen>
-<prompt>c:\cygwin\&gt;</prompt> <userinput>mount</userinput>
+<prompt>$</prompt> <userinput>mount</userinput>
c:\cygwin\bin on /usr/bin type ntfs (binary)
c:\cygwin\lib on /usr/lib type ntfs (binary)
c:\cygwin on / type ntfs (binary)
@@ -756,11 +756,11 @@ for the duration of the current session.
<example id="utils-mount-add-ex">
<title>Adding mount points</title>
<screen>
-<prompt>c:\cygwin\&gt;</prompt> <userinput>ls /data</userinput>
+<prompt>$</prompt> <userinput>ls /data</userinput>
ls: /data: No such file or directory
-<prompt>c:\cygwin\&gt;</prompt> <userinput>mount //pollux/home/joe/data /data</userinput>
+<prompt>$</prompt> <userinput>mount //pollux/home/joe/data /data</userinput>
mount: warning - /data does not exist!
-<prompt>c:\cygwin\&gt;</prompt> <userinput>mount</userinput>
+<prompt>$</prompt> <userinput>mount</userinput>
//pollux/home/joe/data on /data type smbfs (binary)
c:/cygwin/bin on /usr/bin type ntfs (binary)
c:/cygwin/lib on /usr/lib type ntfs (binary)
@@ -826,24 +826,32 @@ mount table, then <filename>z:\</filename> will be accessible as
<filename>/cygdrive/z</filename>. The <command>mount</command> utility
can be used to change this default automount prefix through the use of the
"--change-cygdrive-prefix" option. In the following example, we will
-set the automount prefix to <filename>/</filename>:</para>
+set the automount prefix to <filename>/mnt</filename>:</para>
<example id="utils-cygdrive-ex">
<title>Changing the default prefix</title>
<screen>
-<prompt>c:\cygwin\&gt;</prompt> <userinput>mount --change-cygdrive-prefix /</userinput>
+<prompt>$</prompt> <userinput>mount --change-cygdrive-prefix /mnt</userinput>
</screen>
</example>
<para>Note that the cygdrive prefix can be set both per-user and system-wide,
and that as with all mounts, a user-specific mount takes precedence over the
system-wide setting. The <command>mount</command> utility creates system-wide
-mounts by default if you do not specify a type. Use the <literal>-s</literal>
-or <literal>-u</literal> flag to indicate a system or user mount, respectively.
+mounts by default if you do not specify a type.
You can always see the user and system cygdrive prefixes with the
-<literal>-p</literal> option. Using the <literal>-b</literal>
+<literal>-p</literal> option. Using the <literal>--options</literal>
flag with <literal>--change-cygdrive-prefix</literal> makes all new
-automounted filesystems default to binary mode file accesses.</para>
+automounted filesystems default to this set of options. For instance
+(using the short form of the command line flags)</para>
+
+<example id="utils-cygdrive-ex2">
+<title>Changing the default prefix with specific mount options</title>
+<screen>
+<prompt>$</prompt> <userinput>mount -c /mnt -o binary,noacl</userinput>
+</screen>
+</example>
+
</sect3>