Date: Wed, 10 May 95 14:02:20 EST From: M C Wong <mcw@hpato.aus.hp.com> To: freebsd-questions@freefall.cdrom.com (freebsd-questions@freefall.cdrom.com) Subject: getting NFS stats Message-ID: <199505100402.AA019428543@hp.com>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505100402.AA019428543>