This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
[PATCH]Write Mount Commands
- To: <cygwin-patches at cygwin dot com>
- Subject: [PATCH]Write Mount Commands
- From: "Michael A. Chase" <mchase at ix dot netcom dot com>
- Date: Mon, 3 Sep 2001 12:31:25 -0700
Here's the patch to mount to tell it to write the commands needed to
re-create the current mount table.
Users of Win9x might be confused if they create the commands from a bash
prompt and then try to run the resulting file from command.com. In my
system (which has binary mount points),
mount -m > file
produced a file with NL line endings which command.com chokes on. Running
the same command from the MSDOS prompt produced a file with CRLF line
endings.
--
Mac :})
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
Changelog:
2001-09-03 Michael A Chase <mchase@ix.netcom.com>
* mount.cc (longopts): Add mount-commands to options list.
(usage): Add mount-commands option.
(mount_commands): New function writes commands to recreate
current mounts.
mount.cc-patch