Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: Corinna Vinschen Date: Wed, 13 Dec 2000 23:05:41 +0100 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="us-ascii" To: cygwin AT cygwin DOT com References: <200012132152 DOT NAA03275 AT capella DOT ssd DOT hal DOT com> In-Reply-To: <200012132152.NAA03275@capella.ssd.hal.com> Subject: Re: tar a filesystem outside of /cygwin MIME-Version: 1.0 Message-Id: <00121323054110.05746@cygbert> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id RAA01972 On Wednesday 13 December 2000 22:52, J. J. Farrell wrote: > > From: Christopher Faylor > > > > On Wed, Dec 13, 2000 at 07:53:53AM +0100, Gerrit P. Haase wrote: > > >$ mount c:\ftp /ftp > > >mount: /ftp: Invalid argument > > > > If you do not specify a full path spec, you'll get an "invalid > > argument" error message. > > > > I don't know why you are having such a hard time wrapping your > > brain around that fact, but that's ok. I have nothing more to add > > to this thread. > > I think Gerrit understands that fact, but is having trouble seeing > why mount doesn't complain about an apparently invalid argument > (c:\ftp) but does complain about one which is apparently valid > (/ftp). The reason is quite easy. mount(1) calls mount(2). mount(2) returns with errno set to "Invalid parameter" and that's it. mount(1) doesn't know _which_ parameter mount(2) is complaining about. So mount(1) simply calls it's error function with the 2nd parameter as the wrong one. QED, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com