nfs client on DOS
flag
Messages 1 - 10 of 20 - Collapse all
/groups/adfetch?adid=MhoOJBAAAAC8FHZsu380oNtRwtIef5ta
nfs client on DOS  
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
1.  Vinh Nguyen  
View profile  
 More options Dec 23 1991, 3:56 pm
Newsgroups: comp.protocols.nfs
From: vngu...@bellahs.UUCP (Vinh Nguyen)
Date: 20 Dec 91 22:38:09 GMT
Local: Fri, Dec 20 1991 5:38 pm
Subject: nfs client on DOS

Does anyone know any nfs client public domain on PC/DOS?

Happy holiday,
Vinh Nguyen
email:vnguyen@bellahs


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
file handle interpretation  
1.  Leendert van Doorn  
View profile  
 More options Dec 23 1991, 3:56 pm
Newsgroups: comp.protocols.nfs
From: leend...@cs.vu.nl (Leendert van Doorn)
Date: 20 Dec 91 12:40:16 GMT
Local: Fri, Dec 20 1991 7:40 am
Subject: Re: file handle interpretation

j...@cs.strath.ac.uk (Jim Reid) writes:

# What about the generation number? Well, its usually 32 bits wide and
# essentially random (supposedly). However, good old NFS is kind enough
# to let you do a binary search. If the guess is too low the server will
# reply with NFSERR_STALE, so you can try the other half of the
# generation number space! This might generate a few 'bad file handle'
# messages on the system console, but by the time anyone can do
# something about it, you'll have a valid NFS file handle and can
# traverse through the filesystem at your leisure. Ho-hum.

NFS always returns NFSERR_STALE if it cannot convert a file handle into
a valid v-node pointer (see fhtovp()/nfs_server.c). This makes a binary
search impossible.

        Leendert

--
Leendert van Doorn                                      <leend...@cs.vu.nl>
Vrije Universiteit / Dept. of Maths. & Comp. Sc.    +31 20 5484477
Amoeba project / De Boelelaan 1081A
1081 HV Amsterdam / The Netherlands


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
2.  Barry Margolin  
View profile  
 More options Dec 23 1991, 3:56 pm
Newsgroups: comp.protocols.nfs
From: bar...@think.com (Barry Margolin)
Date: 20 Dec 91 23:35:50 GMT
Local: Fri, Dec 20 1991 6:35 pm
Subject: Re: file handle interpretation
In article <12...@star.cs.vu.nl> sa...@cs.vu.nl (Hans van Staveren) writes:

>die...@york.cs.ucla.edu (Dieter Rothmeier) writes:
>>What about the export file id? If a file system isn't exported you
>>can't get to it, period. Or is that only true for Sun implementations?
>Sorry, but the exports file is only used by the mount daemon. And why would you
>use the mount daemon if you can roll your own file handles?

Yes, the exports *file* is only used by the mount daemon (actually, in
SunOS it's the xtab file; /etc/exports is to /etc/xtab and
/usr/etc/exportfs as /etc/fstab is to /etc/mtab and /usr/etc/mount).  But
structured versions of the export entries are also cached in the kernel,
for use by nfsd as described below.

>It would perhaps be possible to check the exports list at every NFS operation,
>but it would be expensive, and I doubt whether anyone has implemented it.

It's necessary to check the export entry to implement some access control
features.  For instance, all NFS operations that try to modify the
filesystem must check whether the directory was exported read-write.  And
when the client's uid is 0, nfsd must check the root= and anon= attributes
to determine how to translate the uid.

NFS servers that don't implement per-filesystem export properties such as
these can get away with leaving the export file id out of the file handle.
But SunOS can't.
--
Barry Margolin, Thinking Machines Corp.

bar...@think.com
{uunet,harvard}!think!barmar


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
3.  Hans van Staveren  
View profile  
 More options Dec 23 1991, 3:56 pm
Newsgroups: comp.protocols.nfs
From: sa...@cs.vu.nl (Hans van Staveren)
Date: 20 Dec 91 09:22:30 GMT
Local: Fri, Dec 20 1991 4:22 am
Subject: Re: file handle interpretation

die...@york.cs.ucla.edu (Dieter Rothmeier) writes:
>In article <JIM.91Dec19155...@hunter.cs.strath.ac.uk>, j...@cs.strath.ac.uk (Jim Reid) writes:
>|> In article <12...@star.cs.vu.nl> sa...@cs.vu.nl (Hans van Staveren) writes:
>[ deleted...]
>|> guess three things right: a device number, and inode number and a
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>|> generation number.
>   ^^^^^^^^^^^^^^^^^
>What about the export file id? If a file system isn't exported you
>can't get to it, period. Or is that only true for Sun implementations?
>Dieter

Sorry, but the exports file is only used by the mount daemon. And why would you
use the mount daemon if you can roll your own file handles?

It would perhaps be possible to check the exports list at every NFS operation,
but it would be expensive, and I doubt whether anyone has implemented it.

        Hans van Staveren


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
4.  Dieter Rothmeier  
View profile  
 More options Dec 23 1991, 3:56 pm
Newsgroups: comp.protocols.nfs
From: die...@york.cs.ucla.edu (Dieter Rothmeier)
Date: 20 Dec 91 17:14:01 GMT
Local: Fri, Dec 20 1991 12:14 pm
Subject: Re: file handle interpretation
In article <12...@star.cs.vu.nl>, sa...@cs.vu.nl (Hans van Staveren) writes:
|> die...@york.cs.ucla.edu (Dieter Rothmeier) writes:
|>
|> >In article <JIM.91Dec19155...@hunter.cs.strath.ac.uk>, j...@cs.strath.ac.uk (Jim Reid) writes:
|> >|> In article <12...@star.cs.vu.nl> sa...@cs.vu.nl (Hans van Staveren) writes:
|> >[ deleted...]
|> >|> guess three things right: a device number, and inode number and a
|> >   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|> >|> generation number.
|> >   ^^^^^^^^^^^^^^^^^
|>
|> >What about the export file id? If a file system isn't exported you
|> >can't get to it, period. Or is that only true for Sun implementations?
|>
|>
|> >Dieter
|>
|> Sorry, but the exports file is only used by the mount daemon. And why would you
|> use the mount daemon if you can roll your own file handles?
|>
|> It would perhaps be possible to check the exports list at every NFS operation,
|> but it would be expensive, and I doubt whether anyone has implemented it.
|>
|>   Hans van Staveren

It's not that expensive. You just walk through a linked list which isn't
all that long. That's what Sun's NFS server does on every NFS operation.

Dieter


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
NFS writes, NFS accelerators and biod  
1.  Larry McVoy  
View profile  
 More options Dec 23 1991, 3:56 pm
Newsgroups: comp.protocols.nfs
From: l...@slovax.Eng.Sun.COM (Larry McVoy)
Date: 23 Dec 91 07:42:20 GMT
Local: Mon, Dec 23 1991 2:42 am
Subject: Re: NFS writes, NFS accelerators and biod

j...@iastate.edu (John Hascall) writes:
> l...@slovax.Eng.Sun.COM (Larry McVoy) writes:
> }Careful here.  Getattrs and lookups are relatively cheap, being satisfied
> }out of the server's cache most of the time.  Some reads are also cheap,
> }by the same reasoning.  Writes, because of their synchronous nature,
> }are very expensive.  A system that is doing 8% writes will show quite
> }noticable speedup from an NVRAM addition.  Remember - a write can be
> }up to 3 synchronous disk writes.

> Ok, a couple more (hopefully not-too-newbie) questions...

> On our servers our "readhit" and "readahit" rates are right around
> 99% and 90% respectively (I'm guessing this what you are talking
> about above for read caching?  Do the getattrs & lookups come
> out of this too, or is there some other cache for them?)

You must be running a weirdo kernel - I can't find readhit in SunOS or
SVr3.2.  I suspect that those vars are for pages/buffers, i.e., data.

However, if you are hitting the data that well then it is probable that
you are also hitting the inode cache as well.  The inode cache is what
is queried for the getattrs/lookups.

> I'm also guessing the "3 writes for 1" is an effect of "wsize=..."
> option?  Ours is set to 1024, so I assume this is not happening here.

Not at all, a completely different thing.  Unix has three writes to do
for one logical write (assuming UFS is the real target file system):

        Push the inode to disk so that it reflects the new size, if changed.
        Push the indirect block of pointers to disk after allocating.
        Push the data to disk.

The first write happens when you are sequentially writing a new file.
Rewrites probably don't bother (they should to save the modtime, but
I'll bet that is "optimized" out).

The second write starts happen for each block past the direct blocks.
The first 9 (12? I can never remember) block pointers are stored in the
inode, the next pointer points to a block of pointers, and so on.  As
the file gets large, you're allocating out of that block of pointers;
that allocation needs to get saved to disk.

The third write is obvious (I hope).

> Also, how does one determine what are appropriate values for
> "timeo=" and "retrans="?  (Ours are "timeo=20,retrans=16" -- the 20
> strikes me as being much too large!? -- a 1K ping all the way across
> our net is "round-trip (ms)  min/avg/max = 11/11/15").

I never play with these but all my file systems are on my local net so
I'm no expert.  I'd suggest you read Rick Maleph's (sp?) Usenix paper
in the January '91 Usenix proceedings - he played around w/ this sort of
thing.

> Many thanks,
> John

No sweat.
---
Larry McVoy                     (415) 336-7627                   l...@sun.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
2.  Larry McVoy  
View profile  
(1 user)  More options Dec 23 1991, 3:56 pm
Newsgroups: comp.protocols.nfs
From: l...@slovax.Eng.Sun.COM (Larry McVoy)
Date: 23 Dec 91 07:48:20 GMT
Local: Mon, Dec 23 1991 2:48 am
Subject: Re: NFS writes, NFS accelerators and biod

v...@rhyolite.wpd.sgi.com (Vernon Schryver) writes:
> >                      A system that is doing 8% writes will show quite
> > noticable speedup from an NVRAM addition.  Remember - a write can be
> > up to 3 synchronous disk writes.

> Unless you have a system on which you can turn on the Nasty, Evil,
> Non-Compliant Cheating mode, in which case a write is only 2, 1, or fewer
> asynchronous disk writes.

You know, Vernon, one day you'll get a bug report from Citibank.  It
will say "I wrote my data, I fsync()ed the file, I closed it, my server
crashed and when it came back my data was gone".  Then Citibank will
say that they want to return all their SGI machines because the
machines *lie* about data safety.

Sun can't afford to cheat.  Not like that.  Sun has many weak points,
many places where they fall short of customer expectations.  But data
written to disk is treated very carefully.

If you want to do fast writes, then rev the damn protocol to do
clustered writes w/ a following sync/release or sync/retransmit. It
works just fine, it's just a pain to get the client OS to hang on to
the data long enough to do the retransmit.  Feel free to hack the code,
but please stop patting yourself on the back because you lie to
customers about their data.
---
Larry McVoy                     (415) 336-7627                   l...@sun.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
3.  Louis A. Mamakos  
View profile  
(1 user)  More options Dec 24 1991, 9:03 am
Newsgroups: comp.protocols.nfs
From: lo...@sayshell.umd.edu (Louis A. Mamakos)
Date: 23 Dec 91 18:02:56 GMT
Local: Mon, Dec 23 1991 1:02 pm
Subject: Re: NFS writes, NFS accelerators and biod

In article <1...@appserv.Eng.Sun.COM> l...@slovax.Eng.Sun.COM (Larry McVoy) writes:
>You know, Vernon, one day you'll get a bug report from Citibank.  It
>will say "I wrote my data, I fsync()ed the file, I closed it, my server
>crashed and when it came back my data was gone".  Then Citibank will
>say that they want to return all their SGI machines because the
>machines *lie* about data safety.

>Sun can't afford to cheat.  Not like that.  Sun has many weak points,
>many places where they fall short of customer expectations.  But data
>written to disk is treated very carefully.

Is this the same Sun Microsystems that doesn't checksum the UDP
packets carrying NFS?  Talk about the pot calling the kettle black...

louie


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
4.  Geoff Collyer  
View profile  
 More options Dec 24 1991, 10:03 am
Newsgroups: comp.protocols.nfs
From: ge...@world.std.com (Geoff Collyer)
Date: 23 Dec 91 21:15:10 GMT
Local: Mon, Dec 23 1991 4:15 pm
Subject: Re: NFS writes, NFS accelerators and biod
I'm probably going to regret this, but I'd love to know Sun's reasoning
on this...

To defend Vern somewhat, why should data written by an NFS client be
treated differently than data written by an NFS server?  If I run a make
on an NFS client and the server crashes, why should that be any different
than running the same make on the server and having it crash?  That is,
if a Unix server crashes, I expect to lose the last 30 seconds or so of
work, and I probably will (depending on timing), if I work on the server.
Why shouldn't I expect the same data loss if I work on a client instead?

Or is Sun implicitly assuming that no one works on servers and that the
normal Unix writebehind is a bug?
--
Geoff Collyer           world.std.com!geoff, uunet.uu.net!geoff


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
5.  Vernon Schryver  
View profile  
(1 user)  More options Dec 24 1991, 10:05 am
Newsgroups: comp.protocols.nfs
From: v...@rhyolite.wpd.sgi.com (Vernon Schryver)
Date: 23 Dec 91 21:52:25 GMT
Local: Mon, Dec 23 1991 4:52 pm
Subject: Re: NFS writes, NFS accelerators and biod

 0. "lies"?  I think recent Sun press releases about NFS performance are
    the other than truthful statements around here.  But let's not get out
    that dirty linen.  Let's save it for customer visits.

 1. As I keep writing, it's an option.  If you care, don't turn it on.

 2. If Citibank really does use NFS for their money, than I'm glad
    I don't have a Citibank bank card!  NFS has nothing to do with a
    genuine transaction database.

 3. I don't think it's a "pat on the back."  As we've hashed out until
    we're all sick of it, there is no rational difference between a Legato
    board in a Sun and some other brand of computer with a UPS.  that only
    part of the memory in one of those two has a battery is irrelevant for
    "data integrety" concerns.  It does materially affect the profits of
    the company selling the expensive boards.

 4. My personal experience with SGI and Sun machines in the last few years
    is that both are more likely to loose data after it is already properly
    on the disk than due to a crash before a sync.  UNIX kernels are and
    should be as robust as disk drives.
    Disclaimer:  My recent experience with Sun's is less than with IRIS's.

 5. It would be great if Sun would get off it's fundament and get out a
    protocol turn with fixes the several bad bugs in the NFS protocol.
    Sun's bureaucratic paralysis is destroying NFS.  There are some modest
    things that could be done to NFS to make it competative with AFS.
    Because Sun is so dead, NFS is itself moribund.

    The absense of an fsync operation over the wire is a bug, although not
    as important as others, such as the absense of atomic-create, which has
    caused Sun and others so much trouble with a certain locking morass,

 6. It is very hard for anyone but Sun to extend or fix a Sun protocol!
    Maybe almost as hard as for Sun itself.
    Yes, I know about RPC numbers.  For example, you may have noticed that
    Silicon Graphics has registered NIS to get it an IP multicast address.
    I've been nagging Sun about that for years.  No, Silicon Graphics makes
    no claim about the ownership of that Class D address.  We just want to
    get away from the silliness of one NIS server/wire and got tired of
    waiting.

Vernon Schryver,  v...@sgi.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google