www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/01/24/19:02:55

From: cgf AT cygnus DOT com (Christopher Faylor)
Subject: Re: Answer to your text == binary question
24 Jan 1999 19:02:55 -0800 :
Message-ID: <19990124212803.A11808.cygnus.cygwin32.developers@cygnus.com>
References: <01BE46B8 DOT DFC810B0 AT sos>
Mime-Version: 1.0
To: "Pierre A. Humblet" <Pierre DOT Humblet AT eurecom DOT fr>,
"cygwin32-developers AT cygnus DOT com" <cygwin32-developers AT cygnus DOT com>

On Sun, Jan 24, 1999 at 07:30:22PM -0500, Pierre A. Humblet wrote:
>At 12:23 PM 1/24/99 -0500, Christopher Faylor wrote:
>>On Sat, Jan 23, 1999 at 10:12:24AM -0500, Sergey Okhapkin wrote:
>>>Pierre A. Humblet wrote:
>>>> I assume there WILL BE a clear and convenient way to change the mode
>>>> after the default automount has taken place.
>>
>>I'm not quite sure what is being asked for here.  If you have a default
>>the only way to override it is to do something specific like mount the
>>directory.
>
>The user will find him/herself with an automounted directory, say z: to
>/cygdrive/z with text mode.  What is the simple specific rule to change
>the mode to binary?

mount -b -f z: /cygdrive/z

>What Sergey suggested is perfect.  It would be nice if "mount -b z:
>/cygdrive/z" was doing the job as well instead of generating Device or
>resource busy (recognizing that only the mode has changed).

>Less nice ways are to have the user umount then mount again, or to have
>to use the force flag.

I'm not sure why the addition of a '-f' is less nice but that's the
plan so far.  The '-f' option can be viewed as analogous to linux's
-o remount option.  Both are necessary when changing the state of
a mounted partition.

>>>What about something like "mount -b /", "mount -t /dev/fd0"?  Note
>>>missing win32path argument - this case mount command must just change a
>>>type of an existing mount point.
>>
>>mount -t \\.\a: /dev/fd0
>>
>>should work fine.  Assuming I've got the \\ syntax right.
>>
>Today it would generate Device or resource busy

Oops.  I missed the point entirely.  Sorry, Sergey.

cgf

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019