summaryrefslogtreecommitdiffstats
path: root/lib/libstand/nfs.c
Commit message (Collapse)AuthorAgeFilesLines
* Clean up error handling in libstand filesystem code to be more consistent:jhb2004-01-211-2/+3
| | | | | | | | | | | | | | | - bzipfs and gzipfs now properly return errno values directly from their read routines rather than returning -1. - missing errno values on error returns for the seek routines on almost all filesystems were added. - fstat() now returns -1 if an error occurs rather than ignoring it. - nfs's readdir() routine now reports valid errno values if an error or EOF occurs rather than EPERM (It was just returning 0 for success and 1 for failure). - nullfs used the wrong semantics for every function besides close() and seek(). Getting it right for close() appears to be an accident at that. - read() for buffered files no longer returns 0 (EOF) if an error occurs, but returns -1 instead.
* Fix a machine check abort caused by the EFI loader trying to open amarcel2003-03-031-1/+2
| | | | | | | | | | | | | | | | | | file in the NFS file system when the underlying device is not a network device. A Sparc64 specific hack for this exact problem was already present (nfs.c:1.9, tftp.c:1.10), but the problem is not specific to Sparc64. The hack has been promoted to a non-i386 test because on non-i386 architectures it's either impossible to have non-network devices coexist in the same loader with the NFS FS, or network and non-network device coexist and NFS filesystems can only be used on top of network devices. I believe i386 pxeboot is where this does not hold. The root cause of this problem is in open.c where each file system is tried until no more file systems exist or a file system returns success. There's no notion of a list of valid file systems given the underlying device and the non-existence of a file can cause the invalid combination to be tried.
* Stash various networking paramters in the environment for the kerneljake2002-07-311-1/+15
| | | | to pick up, ala pxe.
* Add a hack (kludge?) to avoid trying to access files backed by diskjake2002-07-071-0/+4
| | | | devices as though they were backed by network devices.
* Remove 'register' keyword.obrien2002-03-211-13/+13
|
* Add __FBSDID()s to libstanddillon2001-09-301-1/+3
|
* Expose the NFS root node, so that an evil consumer can use it to get themsmith2000-09-051-1/+1
| | | | NFS filehandle for the root mount.
* Add readdir support to the NFS filesystem in libstand.ps2000-05-011-1/+80
|
* Do not attempt to free a nfs node if it is the root node. The rootps2000-05-011-2/+3
| | | | | node is statically allocated and is not guarded, so free will panic in nfs_close.
* Add a readdir function to the loader fsops vector, and implement thejlemon2000-04-291-2/+9
| | | | functionality for some of the filesystesms.
* Path arguments to *_open functions should be const, but we were manglingmsmith1998-09-181-7/+13
| | | | | | them. Submitted by: write-protected text segment in BTX
* This is libstand; a support library for standalone executables (eg. bootstrapmsmith1998-08-201-0/+653
modules). Obtained from: NetBSD, with some architectural changes and many additions.
OpenPOWER on IntegriCloud