This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Mounting directory problems
- From: ericblake at comcast dot net (Eric Blake)
- To: Yitzchak Scott-Thoennes <sthoenna at efn dot org>, cygwin at cygwin dot com
- Date: Wed, 21 Sep 2005 19:13:18 +0000
- Subject: Re: Mounting directory problems
> > mount //srv2/test /srv2_test
> >
> > You really should create '/srv2_test' first.
>
> Why? What difference does it make?
A directory must exist prior to the mount point if you want
readdir() to see it (used by ls, find, ...). Yes, you can use
mount -f to circumvent the requirement that the directory
already exist, but then you can no longer search the parent
directory for the mount point.
--
Eric Blake
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/