Path: utzoo!attcan!uunet!mcsun!ukc!edcastle!aiai!richard From: richard@aiai.ed.ac.uk (Richard Tobin) Newsgroups: comp.protocols.nfs Subject: Some NFS questions Message-ID: <3007@skye.ed.ac.uk> Date: 17 Jul 90 13:10:51 GMT Reply-To: richard@aiai.UUCP (Richard Tobin) Organization: AIAI, University of Edinburgh, Scotland Lines: 24 I'm writing an NFS server (so that I can mount Minix disks on a Sparcstation) and I've got a few naive questions: (1) What is the meaning of the "count" argument to readdir? Is it the total size of the filenames, entry structures and readdirres structure? I can't find an interpretation that is consistent with what the Sun NFS server returns. (2) The blocksize component of a fattr is described as "the size in bytes of a block of the file". However, du(1) seems to assume the blocksize is 512 bytes regardless. The blocksize I give shows up as the st_blksize returned by stat(2), which is described as the "optimal blocksize for file system i/o ops". Which is right? (3) What is meant to happen if the read returns fewer than "count" bytes? The client kernel doesn't seem to ask for more. Is this right? Thanks, Richard -- Richard Tobin, JANET: R.Tobin@uk.ac.ed AI Applications Institute, ARPA: R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin