Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: Corinna Vinschen <cygwin@cygwin.com>
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@cygwin.com
References: <200012132152.NAA03275@capella.ssd.hal.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 <cygwin@cygwin.com>
> >
> > 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@cygwin.com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

