From owner-freebsd-questions Tue May 9 21:02:27 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA07352 for questions-outgoing; Tue, 9 May 1995 21:02:27 -0700 Received: from hp.com (hp.com [15.255.152.4]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id VAA07346 for ; Tue, 9 May 1995 21:02:26 -0700 Received: from hpautobo.aus.hp.com by hp.com with SMTP (1.37.109.15/15.5+ECS 3.3) id AA019428543; Tue, 9 May 1995 21:02:23 -0700 Message-Id: <199505100402.AA019428543@hp.com> Received: by hpautobo.aus.hp.com (1.38.193.4/16.2) id AA27099; Wed, 10 May 1995 14:02:20 +1000 From: M C Wong Subject: getting NFS stats To: freebsd-questions@freefall.cdrom.com (freebsd-questions@freefall.cdrom.com) Date: Wed, 10 May 95 14:02:20 EST Mailer: Elm [revision: 70.85] Sender: questions-owner@FreeBSD.org Precedence: bulk Ok, Here is the situation, I am exporintg an MSDOS fs from a PC to FreeBSD box, and wonder if there is anyway of getting the DOS PC's filesystem stats, such as total disk space, free disk space etc. DOS PC is running pcnfsd. The NFS RFC says that what I want it procedure 17 : union statfsres (stat status) { case NFS_OK: struct { unsigned tsize; unsigned bsize; unsigned blocks; unsigned bfree; unsigned bavail; } info; default: void; }; statfsres NFSPROC_STATFS( fhandle ) = 17; fhandle is : typedef opaque fhandle[FHSIZE]; The "fhandle" is the file handle passed between the server and the client. All file operations are done using file handles to refer to a file or directory. The file handle can contain whatever information the server needs to distinguish an individual file. Now, if I were to send RPC 17 to the DOS pcnfsd, what will I define this "fhandle" to be ? Alternatively, I believe there are implementations on FreeBSD which does what I want, if so, can someone point me to the right source ? Thanks in advance. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ M.C Wong Email: mcw@hpato.aus.hp.com Australian Telecom Operation Voice: +61 3 272 8058 Hewlett-Packard Australia Ltd Fax: +61 3 898 9257 31 Joseph St, Blackburn 3130, Australia OS: FreeBSD-1.1.5.1 http://hpautow.aus.hp.com:9999/~mcw/mcw.html (or http://hpautorf/~mcw)