Hi, I did a patch for the nfsshell to run on Linux too (and without warning messages). This diff includes a patch to /usr/include/rpc/clnt.h ... The sourcerouting option is specified with the command nfs> host [<localaddr>]@[<host>:...]<dest> --- /usr/include/rpc/clnt.h.orig Tue May 19 10:45:49 1998 +++ /usr/include/rpc/clnt.h Tue May 19 10:50:37 1998 @@ -235,6 +235,9 @@ #define CLSET_RETRY_TIMEOUT 4 /* set retry timeout (timeval) */ #define CLGET_RETRY_TIMEOUT 5 /* get retry timeout (timeval) */ +/* misc. defines */ +#define CLSET_FD_CLOSE 8 /* close fd while clnt_destroy */ + /* * void * CLNT_DESTROY(rh); --- Makefile.orig Tue May 19 11:24:00 1998 +++ Makefile Tue May 19 11:30:27 1998 @@ -12,6 +12,10 @@ # CFLAGS=-DAIX # LIBS= # +# For Linux you need (don't use the GNU lines below) +# CFLAGS=-DREADLINE -I/usr/local/include +# LIBS=-L/usr/local/lib -lreadline -lhistory -lncurses +# # For GNU readline support you need to add # CFLAGS=-DREADLINE -I/usr/local/include # LIBS=-L/usr/local/lib -lreadline -lhistory -ltermlib @@ -20,6 +24,11 @@ CFLAGS = -DSYSV # -DREADLINE -I/usr/local/include LIBS = -lsocket -L/usr/ucblib -R/usr/ucblib -lrpcsoc -lnsl \ # -L/usr/local/lib -lreadline -lhistory -ltermlib + +# uncomment the following 3 lines for linux (tested on 2.0.33) +#CC = gcc +#CFLAGS = -DREADLINE -I/usr/local/include +#LIBS = -L/usr/local/lib -lreadline -lhistory -lncurses #CC = gcc #CFLAGS = -DSYSV --- nfs.c.orig Tue May 19 11:24:03 1998 +++ nfs.c Tue May 19 11:24:06 1998 @@ -14,6 +14,7 @@ * SunOS 4.[123] (SPARC/SUN3) * DEC Ultrix 4.[23] (DEC Station 5100) * AIX 4.1 + * Linux 2.0.33 */ /* @@ -135,7 +136,7 @@ { "chmod", CMD_CHMOD, "<mode> <file> - change mode" }, { "chown", CMD_CHOWN, "<uid>[.<gid>] <file> - change owner" }, { "put", CMD_PUT, "<local-file> [<remote-file>] - put file" }, - { "mount", CMD_MOUNT, "[-up] <path> - mount file system" }, + { "mount", CMD_MOUNT, "[-upTU] <path> - mount file system" }, { "umount", CMD_UMOUNT, "- umount remote file system" }, { "umountall",CMD_UMOUNTALL,"- umount all remote file systems" }, { "export", CMD_EXPORT, "- show all exported file systems" }, @@ -242,7 +243,7 @@ interact = 0; break; default: - fprintf(stderr, "Usage: %s [-v]\n", argv[0]); + fprintf(stderr, "Usage: %s [-vi]\n\t-v\tverbose off\n\t-i\tinteractive mode off\n", argv[0]); exit(1); } } @@ -1846,8 +1847,8 @@ memset(&res, 0, sizeof(res)); if ((stat = pmap_rmtcall(server_addr, MOUNTPROG, MOUNTVERS, - MOUNTPROC_MNT, xdr_dirpath, (caddr_t) argp, xdr_fhstatus, - (caddr_t)&res, timeout, &port)) != RPC_SUCCESS) { + MOUNTPROC_MNT, (xdrproc_t)xdr_dirpath, (caddr_t) argp, + (xdrproc_t) xdr_fhstatus, (caddr_t)&res, timeout, &port)) != RPC_SUCCESS) { clnt_perrno(stat); return NULL; } Mit freundlichen Gruessen, Marc Heuse This message and any statements expressed therein are those of myself and not of the Deutsche Bank AG or its subsidiary companies. Type Bits/KeyID Date User ID pub 2048/DB5C03C5 1997/09/23 Marc Heuse <marc.heuseat_private> -----BEGIN PGP PUBLIC KEY BLOCK----- Version: 2.6.3i mQENAzQnbFEAAAEIAL/tj4hn/DVjEWAZhuqRdxZQDy5B+gZbE0CD/mUnZqpem+9L KY+I8te7jMfTQExzqn5jYb5BaibT0SbEBWSx9Gha8EiBLAVcAjvrXpV+HJLcnPRG YDk5a3s7GrA+QVHbbd9DWgqjMfUMw9oUDAhhjgK20SeOtFGBD2U17GkQF6TK7EjC CTOuz2Hx/tisDuroJJnxZdbLNvCceOf/D/bbFcR7DfnEJWJ3f9JC4fibZMlX5rXL Ct/TKhZMd4d42uL7L4KvkT5JCnFuEw1jRDPpBjZ030cK2uWCM//iEVLGmGKOs6Pg o3Lfnnd6I6bTPHgrNsapNWmocbIGDC/4w9tcA8UABRG0Jk1hcmMgSGV1c2UgPG1h cmMuaGV1c2VAbWFpbC5kZXViYS5jb20+iQEVAwUQNCdsUQwv+MPbXAPFAQFWEwf5 AWt6PbKLLCCBPnzBMdXatKEJvNzrZRXNSpbgKQUDAKApRUnOkDJ9yp3tfJG0/BsL XBf+ldmjjoo/OZeWhIhNb71bbCs8BK7/YK5LKef2eq4pzSiWYosrOfjlfyOVhAiP AiWYtK/HBELy6Zs8QwoPX0QX0+R2+ocMS0TDz7nwBgO5wcj3yMU0geTrnlDpJdj1 RgFQLE6T9qO5coRjj1EAoT5gQMxP9L4TQuifYiQ6S2vh6blr3amjPohKSDzZ62/x rQ1KMXJd7MlMQndn8UwKt4XgoFIsZOFRrkDiXfm6zFnH40UcotoA+Ygojp52+Y6A MuixTDbuf3Jph2jEG6r4Dw== =/n63 -----END PGP PUBLIC KEY BLOCK-----
This archive was generated by hypermail 2b30 : Fri Apr 13 2001 - 13:54:06 PDT