home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / wizards / 5682 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.1 KB  |  66 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!europa.eng.gtefsd.com!gatech!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!torn!nott!bnrgate!bcars267!bcars267!sbo
  3. From: sbo@bcars656.bnr.ca (Stephane Boucher)
  4. Subject: Problem implementing an NFS server... 
  5. Message-ID: <SBO.93Jan28131208@bcars656.bnr.ca>
  6. Sender: news@bnr.ca (usenet)
  7. Nntp-Posting-Host: bcars656
  8. Organization: /u/sbo/.organization
  9. Date: Thu, 28 Jan 1993 18:12:08 GMT
  10. Comments: Hyperbole mail buttons accepted, v3.06.
  11. Lines: 53
  12.  
  13.  
  14. Hi,
  15.  
  16. I know people asking questions here should be able to write Unix from
  17. scratch, but I'll ask you a question anyway :-) (I think it requires
  18. some wizardry knowledge)
  19.  
  20. I'm writting an nfs front end to a database, but first I am testing
  21. the basic functions by just mirroring a regular ufs through my own
  22. nfsd.
  23.  
  24. Sytem used:
  25.     Sparcstation with SunOS4.1.1
  26.  
  27. The server:
  28.     It listens to port 2048, and it does not register itself to 
  29.     the portmapper;
  30.     It is based on NFS Protocol version 2
  31.  
  32. Client Side:
  33.     I have written a mount command that does a mount system call.
  34.     This allows me to use a port that is different from the standard
  35.     nfs port, and thus have my own server cohexist with standard NFS.
  36.  
  37. 1. Now, after mounting the filesystem, I do an ls -R and I get
  38. everything listed. I can see the server processing nfs_getattr,
  39. nfs_readdir and nfs_lookup calls and everything runs as expected.
  40.  
  41. 2. If I issue the ls command a second time, the only call that the
  42. server will have to serve is a single call to nfs_getattr.
  43.  
  44. 3. If I do a touch on the mountpoint, then I essentially am back to 1
  45. when I do an ls command, otherwise I'm stuck in the situation 2.
  46.  
  47. This is if my nfs_getattr gives the time(atime,mtime,ctime) that the
  48. physical file has.
  49.  
  50. However, things work as expected when I cheat and use the current time
  51. (as returned by time(3)) for the value of mtime, except for the fact
  52. that mtime is not what it should be.
  53.  
  54. Why is this?
  55.  
  56. Any help will be  greatly appreciated.
  57.  
  58. Thanks in advance.
  59.  
  60. BTW, if you don't think it is an interesting question, then maybe you
  61. should just answer to me by e-mail.
  62. --
  63.   ,
  64. Stephane Boucher | Bell-Northern Research
  65. sbo@bnr.ca       
  66.