summaryrefslogtreecommitdiffstats
path: root/fish/guestfish.pod
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-04-12 17:03:14 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-04-12 17:15:26 +0100
commit11374abeadfb01252bdb02c0915d1edc79512e79 (patch)
tree0661864128146b57c9a360a169b181a17238185a /fish/guestfish.pod
parentc2c755440bceed92ca40a929f4dfe343d3265e2b (diff)
downloadlibguestfs-11374abeadfb01252bdb02c0915d1edc79512e79.tar.gz
libguestfs-11374abeadfb01252bdb02c0915d1edc79512e79.tar.xz
libguestfs-11374abeadfb01252bdb02c0915d1edc79512e79.zip
fish: Allows win:... paths to work with drives mounted anywhere.
This allows you to mount disks on (eg) /c and /e and have the guestfish win:... path mechanism map drive letters to the right places.
Diffstat (limited to 'fish/guestfish.pod')
-rw-r--r--fish/guestfish.pod19
1 files changed, 12 insertions, 7 deletions
diff --git a/fish/guestfish.pod b/fish/guestfish.pod
index 58f0bd9d..eb9ff39a 100644
--- a/fish/guestfish.pod
+++ b/fish/guestfish.pod
@@ -798,19 +798,24 @@ on each one. Then you can close the mapper device:
=head1 WINDOWS PATHS
If a path is prefixed with C<win:> then you can use Windows-style
-paths (with some limitations). The following commands are equivalent:
+drive letters and paths (with some limitations). The following
+commands are equivalent:
file /WINDOWS/system32/config/system.LOG
- file win:/windows/system32/config/system.log
-
file win:\windows\system32\config\system.log
- file WIN:C:\Windows\SYSTEM32\conFIG\SYSTEM.LOG
+ file WIN:C:\Windows\SYSTEM32\CONFIG\SYSTEM.LOG
+
+The parameter is rewritten "behind the scenes" by looking up the
+position where the drive is mounted, prepending that to the path,
+changing all backslash characters to forward slash, then resolving the
+result using L</case-sensitive-path>. For example if the E: drive
+was mounted on C</e> then the parameter might be rewritten like this:
+
+ win:e:\foo\bar => /e/FOO/bar
-This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also
-handles case insensitivity like Windows would. This only works in
-argument positions that expect a path.
+This only works in argument positions that expect a path.
=head1 UPLOADING AND DOWNLOADING FILES