Re: nfs-server - status request for information
Robb, Sam wrote: A workaround is to create a regular directory, mount the Windows drive at that directory, and then export the directory. For example: $ mkdir -p /exports/c $ mount -f -s -b c:/ /exports/c $ echo /exports/c (ro,all_squash) /etc/exports Would another possible workaround be just a simple ``mkdir -p /cygdrive/c/cygwin/cygdrive/c'' (this assumes cygwin is installed in c:\cygwin)? Earnie.
Re: nfs-server - status request for information
On Tue, Jan 21, 2003 at 07:39:26AM -0500, Earnie Boyd wrote: Robb, Sam wrote: A workaround is to create a regular directory, mount the Windows drive at that directory, and then export the directory. For example: $ mkdir -p /exports/c $ mount -f -s -b c:/ /exports/c $ echo /exports/c (ro,all_squash) /etc/exports Would another possible workaround be just a simple ``mkdir -p /cygdrive/c/cygwin/cygdrive/c'' (this assumes cygwin is installed in c:\cygwin)? I'd actually appreciate it if someone would actually fix the problem in cygwin rather than providing workarounds. cgf
Re: nfs-server - status request for information
Christopher Faylor wrote: On Tue, Jan 21, 2003 at 07:39:26AM -0500, Earnie Boyd wrote: Robb, Sam wrote: A workaround is to create a regular directory, mount the Windows drive at that directory, and then export the directory. For example: $ mkdir -p /exports/c $ mount -f -s -b c:/ /exports/c $ echo /exports/c (ro,all_squash) /etc/exports Would another possible workaround be just a simple ``mkdir -p /cygdrive/c/cygwin/cygdrive/c'' (this assumes cygwin is installed in c:\cygwin)? I'd actually appreciate it if someone would actually fix the problem in cygwin rather than providing workarounds. But workarounds are useful until then. My suggestion, if it works, will avoid adding an entry into the mount table. Earnie.
nfs-server - status request for information
All, With the sunrpc package released, next thing up (for me, at least) is the universal nfs server package. I'm still working on testing various and sundry options; basic operation (running mountd/nfsd with the default settings) seems to work well, though, so I'm optimistic about other things. Two topics that I haven't been able to explore at all, and probably won't have time to examine in the near future, are: 1) Installing under inetd or xinetd. 2) Running under Win9x. If anyone has any information on these topics, please let me know. I'll gladly sing your praises in the installed docs and in the release announcement :-) BTW, I've seen several people report problems with exporting /cygdrive/c and the like. I've started documenting this (and other issues) in the Cygwin README file: - Cannot export '/cygdrive' or other Cygwin mounts The NFS daemon cannot export Cygwin mount points directly. For example, if you add /cygdrive/c to /etc/exports, while mountd will not complain, any attempt to actually mount the directory on a remote machine will result in an error. A workaround is to create a regular directory, mount the Windows drive at that directory, and then export the directory. For example: $ mkdir -p /exports/c $ mount -f -s -b c:/ /exports/c $ echo /exports/c (ro,all_squash) /etc/exports -Samrobb
Re: nfs-server - status request for information
Robb, Sam wrote: - Cannot export '/cygdrive' or other Cygwin mounts The NFS daemon cannot export Cygwin mount points directly. For example, if you add /cygdrive/c to /etc/exports, while mountd will not complain, any attempt to actually mount the directory on a remote machine will result in an error. A workaround is to create a regular directory, mount the Windows drive at that directory, and then export the directory. For example: $ mkdir -p /exports/c $ mount -f -s -b c:/ /exports/c $ echo /exports/c (ro,all_squash) /etc/exports Will it work if you simply do mkdir /cygdrive? If not, shouldn't it? Max.
RE: nfs-server - status request for information
A workaround is to create a regular directory, mount the Windows drive at that directory, and then export the directory. For example: $ mkdir -p /exports/c $ mount -f -s -b c:/ /exports/c $ echo /exports/c (ro,all_squash) /etc/exports Will it work if you simply do mkdir /cygdrive? AFAICT, no. It appears that /cygdrive (or, I would suppose, whatever the mount prefix is) is special. stat() reports it as a directory with a uid of 0, a gid of 0, a size of 0, and a device ID of 6400. /proc is similar, but the device id is 6656. If not, shouldn't it? shrug I honestly don't know. I suspect that the problem here is that we're toggling device IDs as we move along the path... - If you stat '/', you get st_dev == 'A'. - If you stat '/cygdrive', you get st_dev == 'B'. - If you stat '/cygdrive/c', you get st_dev == 'A' again. OTOH, if you 'mkdir -p /exports/c' then mount c:/ under /exports/c, then you end up with st_dev == 'A' for every directory along the path from / to /exports/c. -Samrobb