home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / protocol / nfs / 2796 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  3.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!seven-up.East.Sun.COM!tyger.Eng.Sun.COM!geoff
  2. From: geoff@tyger.Eng.Sun.COM (Geoff Arnold @ Sun BOS - R.H. coast near the top)
  3. Newsgroups: comp.protocols.nfs
  4. Subject: Re: HELP:  Can't mount printers
  5. Date: 19 Nov 1992 20:37:12 GMT
  6. Organization: SunSelect
  7. Lines: 102
  8. Message-ID: <1egttpINN1dh@seven-up.East.Sun.COM>
  9. References: <lgl37rINNm4q@ai.cs.utexas.edu>
  10. NNTP-Posting-Host: tyger.east.sun.com
  11.  
  12. Quoth tyen@cs.utexas.edu (Anthony Yen) (in <lgl37rINNm4q@ai.cs.utexas.edu>):
  13. #
  14. #PC-NFS 4.0 refuses to mount a printer, with the diagnostic message:
  15. #
  16. #    NFS040F : The specified file system is not local to server mundo.
  17. #
  18. #This is after I give the command:
  19. #
  20. #    net use lpt2: mundo:lw_3.138 /cmd=h /fmt=p /wsize=1024
  21.  
  22. This should be
  23.  
  24.  net use lpt2: mundo:lw_3.138 /fmt=p,wsize=1024
  25.  
  26. I have no idea what "cmd=h" is supposed to do. Here's the comments
  27. from the start of the routine that decodes this stuff:
  28.  
  29.  
  30. /*
  31.  * parse_options
  32.  *
  33.  * The purpose of this routine is to rip apart an options string
  34.  * and set up a number of variables which will then be stuffed
  35.  * in a suitable form into the mount struct.
  36.  *
  37.  * The "opts" argument is assumed to have had a leading '/' or '-'
  38.  * which we skip. The rest of the list consists of one or
  39.  * more of the following items, separated by commas with no embedded
  40.  * spaces. Case is ignored. (Items on the same line are synonyms.)
  41.  *
  42.  * ro | readonly
  43.  * ms | mustlock | mustshare | sh | lock | share
  44.  * ns | nolock | noshare
  45.  * rsize=NNNN
  46.  * wsize=NNNN
  47.  * retries=N
  48.  * timeo=N | timeout=N
  49.  *
  50.  * For example
  51.  *
  52.  *      /ms,wsize=1024,timeout=10,retries=8
  53.  *
  54.  * would specify that sharing was required, that writes be split up
  55.  * into 1K chunks, that the initial timeout before the first retry
  56.  * should be 1 second (timeout is given in tenths of a second), and
  57.  * that each request should be retried 8 times before giving up.
  58.  *
  59.  * Deficiencies: it doesn't complain about inconsistent requests,
  60.  * such as 
  61.  *      /ms,ro,ns
  62.  *
  63.  * or absurd values, like
  64.  *
  65.  *      /wsize=3
  66.  *
  67.  * Also we accept and parse the rsize option, but PCNFS.SYS will ignore it.
  68.  *
  69.  * For printers we also accept the following options:
  70.  *
  71.  * end={timeout|xit|hotkey|manual}
  72.  * fmt={raw|text|postscript}
  73.  *
  74.  * In these options, only the first byte of the keyword is significant,
  75.  * so in fact these could be written as:
  76.  *
  77.  * end={t|x|h|m}
  78.  * fmt={r|t|p}
  79.  */
  80. #
  81. #Attempting to mount the printer from nfsconf fails with the diagnostic
  82. #message:
  83. #
  84. #    NFS157F : The mount request failed.
  85. #
  86. #A "net printers" gives the diagnostic message:
  87. #
  88. #    NFS228F : Can't get printers from server
  89.  
  90. The message should be more informative :-)  If you don't supply a system
  91. name, NET PRINTERS  will use the current PCNFSD server (see
  92. NET ALL to list this and other stuff). If there is none, you get
  93. this message.
  94.  
  95. #
  96. #However, a "net printers mundo" gives a complete and correct list of
  97. #printers.  Also, there are no problems with mounting file systems,
  98. #either from the command line or under nfsconf.
  99.  
  100.  
  101. Try "showmnt -e mundo". Typically "/usr/spool" is a symlink to
  102. "/var/spool", which may be on a different file system If you
  103. simply export "/usr", you will "not" then export "/var/spool".
  104. Try this: on "mundo", cd to /var/spool/pcnfs and type "df ."
  105. to see which file system you're currently using.
  106.  
  107. Geoff
  108.  
  109. --
  110. Geoff Arnold, PC-NFS architect, Sun Select. (geoff.arnold@East.Sun.COM)
  111. ADMINISTRIVIA==========ADMINISTRIVIA=====ADMINISTRIVIA==========ADMINISTRIVIA
  112. Our systems will be down from Thuursday 5PM EDT until some time on Monday, while we
  113. move from Billerica to our new Chelmsford, MA campus. Apologies for etc. etc. etc.
  114.