History log of /src/sys/lib/libsa/nfs.c |
Revision | | Date | Author | Comments |
1.53 |
| 29-Jun-2024 |
rin | libsa/nfs.c: Add `LIBSA_NFS_IMPLICIT_MOUNT` compile-time option
by which nfs_mount() is automatically called from nfs_open(), as done for nfs.c in i386/stand.
This is only functional difference b/w two copies of nfs.c. Now, we can safely retire the latter.
XXX It would be really nice to drop this option also. However, unfortunately, it is too much for me at the very moment...
|
1.52 |
| 14-Dec-2023 |
rin | libsa: nfs: Fix NFS_NOSYMLINK option for previous
Used only by mvme68k.
|
1.51 |
| 12-Dec-2023 |
mlelstv | Add NFSv3 support. Try NFSv3 and fall back to NFSv2.
|
1.50 |
| 26-Jan-2020 |
skrll | Make a debug printf compile for all platforms
|
1.49 |
| 31-Mar-2019 |
christos | branches: 1.49.6; fix warnings, printf formats, etc.
|
1.48 |
| 20-Mar-2014 |
christos | branches: 1.48.30; reduce size by 1K by sharing the ls code.
|
1.47 |
| 25-Dec-2011 |
tsutsui | branches: 1.47.6; 1.47.10; Apply the following patch submitted by Evgeniy Ivanov: http://mail-index.NetBSD.org/tech-kern/2011/12/15/msg012226.html http://mail-index.NetBSD.org/tech-kern/2011/12/17/msg012229.html
- add 'ls' op to struct fs_ops to support ls command on each fs, enabled by -DLIBSA_ENABLE_LS_OP and SAMISCMAKEFLAGS+="SA_ENABLE_LS_OP=yes" in libsa - split sys/lib/libsa/ufs_ls.c into UFS specific part and MI part (ls.c) that opens the target fs and calls fs-depedent XXX_ls() functions - add a ls op for ext2fs (all other fs than ufs and ext2fs don't have actual ls ops yet) - replace existing MD ufs_ls() calls with this new MI ls()
The original patch was written for i386 and ext2fs. zaurus zboot has been tested by nonaka@. ews4800mips and x68k loaders have been tested by me (with several fixes). landisk might be okay since it was almost copied from i386.
XXX1: "ls" op in fs_ops looks a bit inconsistent, but we will be able to replace it with real fs ops like readdir if it's really worth XXX2: someone might have to check sys/arch/ia64/stand/efi/libefi/efifs_ls.c
|
1.46 |
| 16-Jun-2011 |
joerg | branches: 1.46.2; 1.46.6; Add an optional MD calling convention flag for use in libsa when space optimisation is critical. Use this on i386 to switch to register passing calling convention for the file system entry points and most assembler call backs that have to preserve at least 3 registers.
|
1.45 |
| 17-Jan-2009 |
tsutsui | branches: 1.45.12; Remove __P().
|
1.44 |
| 19-Nov-2008 |
ad | For the x86 boot loader, autoload a kernel module corresponding to the root file system type.
|
1.43 |
| 25-Mar-2008 |
christos | branches: 1.43.4; 1.43.10; 1.43.12; - use mem* instead of b* routines, and kill the b* routines. - use the mem* routines from libc. XXX: There will be some lossage, but I am fixing it.
|
1.42 |
| 24-Nov-2007 |
isaki | branches: 1.42.14; style, indent, and ANSI-fy.
|
1.41 |
| 25-Feb-2007 |
uwe | branches: 1.41.16; 1.41.18; 1.41.24; Add missing newlines to debug messages.
|
1.40 |
| 29-Dec-2006 |
yamt | branches: 1.40.2; remove nqnfs from comments. from Arnaud Lacombe. (no functional changes.)
|
1.39 |
| 25-Jan-2006 |
christos | branches: 1.39.18; free -> dealloc
|
1.38 |
| 11-Dec-2005 |
christos | branches: 1.38.2; merge ktrace-lwp.
|
1.37 |
| 26-Feb-2005 |
perry | branches: 1.37.4; nuke trailing whitespace
|
1.36 |
| 04-Sep-2003 |
he | branches: 1.36.8; 1.36.10; Um, undo last; libsa printf doesn't do %z.
|
1.35 |
| 04-Sep-2003 |
he | Use the %zu format for size_t printing instead of cast + %lu.
|
1.34 |
| 03-Sep-2003 |
he | Cast size_t to u_long before printing, and use %lu instead of %d as format. Fixes compilation on alpha.
|
1.33 |
| 31-Aug-2003 |
fvdl | Fix signed/unsigned warnings.
|
1.32 |
| 18-Aug-2003 |
dsl | make 'path' argument to ufs_open 'const char *' and fix the fallout.
|
1.31 |
| 18-Mar-2003 |
mycroft | branches: 1.31.2; Move some stuff into .rodata.
|
1.30 |
| 12-Mar-2003 |
drochner | no need to include "netif.h" anymore (shared interface stuff is in iodesc.h, included by net.h)
|
1.29 |
| 30-Mar-2000 |
augustss | Kill some more register declarations.
|
1.28 |
| 23-Nov-1999 |
simonb | Remove leading '/' from pathnames, using same logic as ufs.c. Allows new style (but not yet committed) pmax bootblocks to open "/boot.pmax" on an ISO image. Same problem reported for NFS by Jason Thorpe.
|
1.27 |
| 13-Nov-1999 |
thorpej | Backout my libsa changes.
|
1.26 |
| 11-Nov-1999 |
thorpej | Update for the improvements to libsa, and don't reference libkern.h.
|
1.25 |
| 31-Mar-1999 |
cgd | branches: 1.25.8; 1.25.10; 1.25.14; Make a bunch of backward-compatible changes to the boot blocks which allow size to be reduced substantially. (backward compatibility verified by compiling one of the alpha boot blocks which uses all of the code before and after, diffing the object files, and manually verifying that the differences were 'correct'. some differences were "unavoidable," it wanting to avoid a double-commit, because e.g. local variables which were previously used were no longer used.) a README which describes supported options (or at least the ones mentioned below) is forthcoming.
add support for the preprocessor macro LIBSA_NO_TWIDDLE, which causes calls to twiddle() to be omitted if it's defined. add support for the preprocessor macros: LIBSA_NO_FS_CLOSE LIBSA_NO_FS_WRITE LIBSA_NO_FS_SEEK which, if defined, cause the corresponding file system operations in the individual file system implementations to be omitted. (note that all of those macros are not supported by all file systems at this point. comments were added to individual file system files to indicate lack of support, and should be cleaned up later. Backward compatibility options e.g. UFS_NOCLOSE, etc., are supported.) add support for the preprocessor macro LIBSA_NO_FS_SYMLINK, which removes support for symbolic links from the file system support functions. (same notes as for the macros above apply.) add support for the preprocessor macro LIBSA_FS_SINGLECOMPONENT which removes all subdirectory and symlink support from the file system support functions. (same notes as for the macros above apply.) add support for the preprocessor macro LIBSA_NO_FD_CHECKING, which causes code relating to libsa file descriptor checks (e.g. range checking and checking that a file descriptor is valid) to be omitted if it's defined. add support for the preprocessor macro LIBSA_NO_RAW_ACCESS, which causes code relating to raw device access to be omitted if it's defined. change some structure copies to use bcopy() instead. that way use of bcopy vs. memcpy() can easily be selected by LIBSA_USE_MEMCPY. (without changes like these, you could end up having both bcopy() and memcpy() included. eventually, all calls to bcopy should be changed to calls to memcpy() or memmove() as appropriate -- hopefully never the latter -- with an option to use bcopy instead.) add support for the preprocessor macro LIBSA_NO_DISKLABEL_MSGS, which causes disklabel() to return '1' as msg rather than a string. Can be used if the boot blocks don't care about the string, and need to save the space. add support for the preprocessor macro LIBSA_SINGLE_FILESYSTEM, which if defined causes all of the file system switch code to be removed. Its value should be the name of the file system supported by the boot block, e.g. "ufs" for the FFS file system. calls to the file system functions open, close, etc., which were previously done through a function switch are then done via direct invocation of <fs>_open, <fs>_close, etc. (e.g. ufs_open, ...). add support for the preprocessor macro LIBSA_SINGLE_DEVICE, which does the equivalent of LIBSA_SINGLE_FILESYSTEM but for the device switch table. Device entry pointes are expected to be named <dev>foo, e.g. the 'strategy' routine used when LIBSA_SINGLE_DEVICE is set to 'disk' is diskstrategy. make ufs.c f_nindir array be unsigned ints. the fact that it was signed caused ufs.c to require signed division routines (which were otherwise unnecessary for a small boot block).
|
1.24 |
| 11-Feb-1999 |
pk | Add missing prototypes.
|
1.23 |
| 23-Jan-1998 |
thorpej | Fix some debugging printf formats.
|
1.22 |
| 26-Jun-1997 |
drochner | Avoid user space headers for standalone programs. Don't use sys/lib/libkern or sys/lib/libz if not standalone (ie, user space test programs).
|
1.21 |
| 16-Jun-1997 |
drochner | Conditionally compile without symlink support (#ifdef NFS_NOSYMLINK). Saves 708 bytes (i386). (close pr misc/3335)
|
1.20 |
| 27-Dec-1996 |
pk | Add missing `#ifdef NFS_DEBUG' (from Rolf Grossmann; PR#3061).
|
1.19 |
| 13-Oct-1996 |
christos | backout previous kprintf changes
|
1.18 |
| 10-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.17 |
| 02-Oct-1996 |
cgd | fix several endianness bugs that caused name lookup (!!) and symlink expansion to fail on little-endian machines.
|
1.16 |
| 30-Sep-1996 |
ws | Add support for booting from cd9660 fs Support directory traversal and symbolic links for nfs booting Close device when file opening failed Plug memory leak in ufs code
|
1.15 |
| 14-May-1996 |
leo | Fix gcc -Wall warnings about printf arguments.
|
1.14 |
| 26-Feb-1996 |
gwr | Make this code independent of <sys/nfs> now that we use very little from there anyway, so we can ignore changes in the NFS code...
|
1.13 |
| 26-Feb-1996 |
scottr | Make these build again in the wake of the v3 changes
|
1.12 |
| 23-Sep-1995 |
gwr | More cleanup: change some private types to eliminate casts, replace some "goto xxx" with return(-1). (mostly cosmetic)
|
1.11 |
| 18-Sep-1995 |
pk | Another round of clean up, including fixes presented by Matthias Drochner (PR#1404). Things to be noted: - all IP addresses are now `struct in_addr's. - the function rarp_getipaddress() no longer return `myip'; in stead it returns -1 on failure (errno set), 0 on success. `myip' is set as a size-effect.
|
1.10 |
| 17-Sep-1995 |
pk | Revert fs_ops read/write declarations; these return error numbers. Get rid of some more compiler warnings. Set errno where appropriate.
|
1.9 |
| 14-Sep-1995 |
pk | Clear up some size_t/ssize_t confusion.
|
1.8 |
| 03-Jul-1995 |
gwr | Can not use htonl() in static initializers. (Fixes PR 1188)
|
1.7 |
| 27-Jun-1995 |
gwr | Re-work for new rpc interface, and simplify a bit.
|
1.6 |
| 20-Feb-1995 |
mycroft | Various: * Fix some misused types. * Encapsulate the protocols better. * Rearrange the RPC stuff to work more like the kernel. (Needs more work.) * Remove a bunch of extra hair when reading a file over NFS. * Use RPCAUTH_UNIX when talking to the NFS server.
|
1.5 |
| 19-Feb-1995 |
mycroft | Adjust the attribute info size for our NFS code.
|
1.4 |
| 26-Oct-1994 |
cgd | new RCS ID format.
|
1.3 |
| 22-Aug-1994 |
brezak | branches: 1.3.2; Cleanup to make more ANSI compliant; checkpoint
|
1.2 |
| 20-Jun-1994 |
glass | make it compile w/4.4-lite header file changes
|
1.1 |
| 08-May-1994 |
brezak | Standalone networking for network boot loaders.
|
1.3.2.2 |
| 22-Aug-1994 |
brezak | Cleanup to make more ANSI compliant; checkpoint
|
1.3.2.1 |
| 22-Aug-1994 |
brezak | file nfs.c was added on branch netbsd-1-0 on 1994-08-22 21:56:09 +0000
|
1.25.14.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.25.10.1 |
| 15-Nov-1999 |
fvdl | Sync with -current
|
1.25.8.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago
|
1.31.2.4 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.31.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.31.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.31.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.36.10.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.36.8.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.37.4.4 |
| 07-Dec-2007 |
yamt | sync with head
|
1.37.4.3 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.37.4.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.37.4.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.38.2.1 |
| 01-Feb-2006 |
yamt | sync with head.
|
1.39.18.1 |
| 12-Jan-2007 |
ad | Sync with head.
|
1.40.2.1 |
| 27-Feb-2007 |
yamt | - sync with head. - move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
|
1.41.24.1 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.41.18.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.41.16.1 |
| 27-Nov-2007 |
joerg | Sync with HEAD. amd64 Xen support needs testing.
|
1.42.14.2 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.42.14.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.43.12.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.43.10.1 |
| 13-Dec-2008 |
haad | Update haad-dm branch to haad-dm-base2.
|
1.43.4.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.45.12.1 |
| 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.46.6.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.46.2.2 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.46.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.47.10.1 |
| 18-May-2014 |
rmind | sync with head
|
1.47.6.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.48.30.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.48.30.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.49.6.1 |
| 29-Feb-2020 |
ad | Sync with head.
|