From: geoff@tyger.Eng.Sun.COM (Geoff Arnold @ Sun BOS - R.H. coast near the top)
Newsgroups: comp.protocols.nfs
Subject: Re: HELP:  Can't mount printers
Date: 19 Nov 1992 20:37:12 GMT
Organization: SunSelect
NNTP-Posting-Host: tyger.east.sun.com

Quoth tyen@cs.utexas.edu (Anthony Yen) (in <lgl37rINNm4q@ai.cs.utexas.edu>):
#
#PC-NFS 4.0 refuses to mount a printer, with the diagnostic message:
#
#	NFS040F : The specified file system is not local to server mundo.
#
#This is after I give the command:
#
#	net use lpt2: mundo:lw_3.138 /cmd=h /fmt=p /wsize=1024

This should be

 net use lpt2: mundo:lw_3.138 /fmt=p,wsize=1024

I have no idea what "cmd=h" is supposed to do. Here's the comments
from the start of the routine that decodes this stuff:


/*
 * parse_options
 *
 * The purpose of this routine is to rip apart an options string
 * and set up a number of variables which will then be stuffed
 * in a suitable form into the mount struct.
 *
 * The "opts" argument is assumed to have had a leading '/' or '-'
 * which we skip. The rest of the list consists of one or
 * more of the following items, separated by commas with no embedded
 * spaces. Case is ignored. (Items on the same line are synonyms.)
 *
 * ro | readonly
 * ms | mustlock | mustshare | sh | lock | share
 * ns | nolock | noshare
 * rsize=NNNN
 * wsize=NNNN
 * retries=N
 * timeo=N | timeout=N
 *
 * For example
 *
 *      /ms,wsize=1024,timeout=10,retries=8
 *
 * would specify that sharing was required, that writes be split up
 * into 1K chunks, that the initial timeout before the first retry
 * should be 1 second (timeout is given in tenths of a second), and
 * that each request should be retried 8 times before giving up.
 *
 * Deficiencies: it doesn't complain about inconsistent requests,
 * such as 
 *      /ms,ro,ns
 *
 * or absurd values, like
 *
 *      /wsize=3
 *
 * Also we accept and parse the rsize option, but PCNFS.SYS will ignore it.
 *
 * For printers we also accept the following options:
 *
 * end={timeout|xit|hotkey|manual}
 * fmt={raw|text|postscript}
 *
 * In these options, only the first byte of the keyword is significant,
 * so in fact these could be written as:
 *
 * end={t|x|h|m}
 * fmt={r|t|p}
 */
#
#Attempting to mount the printer from nfsconf fails with the diagnostic
#message:
#
#	NFS157F : The mount request failed.
#
#A "net printers" gives the diagnostic message:
#
#	NFS228F : Can't get printers from server

The message should be more informative :-)  If you don't supply a system
name, NET PRINTERS  will use the current PCNFSD server (see
NET ALL to list this and other stuff). If there is none, you get
this message.

#
#However, a "net printers mundo" gives a complete and correct list of
#printers.  Also, there are no problems with mounting file systems,
#either from the command line or under nfsconf.


Try "showmnt -e mundo". Typically "/usr/spool" is a symlink to
"/var/spool", which may be on a different file system If you
simply export "/usr", you will "not" then export "/var/spool".
Try this: on "mundo", cd to /var/spool/pcnfs and type "df ."
to see which file system you're currently using.

Geoff

--
Geoff Arnold, PC-NFS architect, Sun Select. (geoff.arnold@East.Sun.COM)
ADMINISTRIVIA==========ADMINISTRIVIA=====ADMINISTRIVIA==========ADMINISTRIVIA
Our systems will be down from Thuursday 5PM EDT until some time on Monday, while we
move from Billerica to our new Chelmsford, MA campus. Apologies for etc. etc. etc.
Newsgroups: comp.protocols.nfs