NFS problem

Sławek Żak szak at era.pl
Thu Jul 17 02:23:26 PDT 2003


Terry Lambert <tlambert2 at mindspring.com> writes:
>> I guess there is something wrong with exporting iso9660 CD's over NFS. I've added
>> 
>>   /cdrom -ro -mapall=root
>> 
>> to /etc/exports, restarted mountd and after mounting the CD on Solaris 8. All the
>> files are 0-sized, dates are set back to the epoch and directories are seen as
>> files. Exporting ufs2 filesystems works as expected.
> [ ... ]
>> Any thoughts?

[...]

> You are certain you don't see these same attributes on /cdrom
> itself, form a shell when you cd to /cdrom? 

I'm positive. The actual listing of /cdrom is:

thirst<root>(2057)# ls -la
total 82
dr-xr-xr-x    6 root  wheel   2048 Aug 28  2002 .
drwxr-xr-x   22 root  wheel    512 Jul 16 16:11 ..
dr-xr-xr-x    4 root  wheel   2048 Aug 28  2002 .install
dr-xr-xr-x    3 root  wheel   2048 Aug 28  2002 .jvm
lr-xr-xr-x    1 root  wheel     15 Aug 28  2002 Copyright -> image/Copyright
-r-xr-xr-x    1 root  wheel    263 Aug 28  2002 autorun
-r-xr-xr-x    1 root  wheel     92 Aug 28  2002 autorun.inf
-r--r--r--    1 root  wheel    133 Aug 28  2002 cd.info
dr-xr-xr-x    4 root  wheel   2048 Aug 28  2002 image
-r-xr-xr-x    1 root  wheel   4361 Aug 28  2002 installer
lr-xr-xr-x    1 root  wheel     20 Aug 28  2002 installing.pdf -> image/installing.pdf
lr-xr-xr-x    1 root  wheel     23 Aug 28  2002 release_notes.txt -> image/release_notes.txt
dr-xr-xr-x  310 root  wheel  38912 Jan  1  1970 rr_moved
-r-xr-xr-x    1 root  wheel  28672 Aug 28  2002 setup.exe
-r-xr-xr-x    1 root  wheel   1646 Aug 28  2002 volstart

If I mount it from other FreeBSD or Tru64 host, it's also seen properly. I guess
it's just Solaris problem. I tried Solaris 7,8,9, Tru64 5.0,5.1,5.1a and FreeBSD
4.7,4.8 and 5.0.

> If your answer is "no", then it's definitely the externalization of the stat
> structure and things like struct direct.  Note that the NFS over-the-wire stat
> structure is *not* the same as the FFS version which it exports to the stat(2)
> and fstat(2) system calls.  Probably the thing to do is to look at the
> differences in the code, and not assume that the VFS client is always the
> system call layer.

Now I guess it's Solaris specific. If you want some more details, let me know.

/S


More information about the freebsd-current mailing list