summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-07-18 19:33:53 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-07-18 19:33:53 +0000
commit6d031d543c3d532ca22025eb58108749fe3303fe (patch)
treeae11546bd1d433e89458680f7c2b237048c2ac69
parent2007-07-18 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadnetwork-demos-6d031d543c3d532ca22025eb58108749fe3303fe.tar.bz2
2007-07-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* init.c: Make the NFS server, remote filesystem, and directory to look at configurable.
-rw-r--r--nfsClientTest/ChangeLog5
-rw-r--r--nfsClientTest/init.c17
2 files changed, 14 insertions, 8 deletions
diff --git a/nfsClientTest/ChangeLog b/nfsClientTest/ChangeLog
index 04cae85..4b1b63b 100644
--- a/nfsClientTest/ChangeLog
+++ b/nfsClientTest/ChangeLog
@@ -1,5 +1,10 @@
2007-07-18 Joel Sherrill <joel.sherrill@oarcorp.com>
+ * init.c: Make the NFS server, remote filesystem, and directory to look
+ at configurable.
+
+2007-07-18 Joel Sherrill <joel.sherrill@oarcorp.com>
+
* ChangeLog, init.c: Clean up and now works on PowerPC/ep5200.
2007-07-18 Joel Sherrill <joel.sherrill@oarcorp.com>
diff --git a/nfsClientTest/init.c b/nfsClientTest/init.c
index 941761a..8f4713f 100644
--- a/nfsClientTest/init.c
+++ b/nfsClientTest/init.c
@@ -125,26 +125,27 @@ rtems_task Init(
printf("============== Mounting Remote Filesystem ==============\n");
#if 1
/* This code uses the NFS mount wrapper function */
- int_status = nfsMount("192.168.1.210", "/home", "/home" );
+ int_status = nfsMount( RTEMS_NFS_SERVER, RTEMS_NFS_SERVER_PATH, "/mnt" );
#else
/* This section does it more explicitly */
- mkdir( "/home", 0777 );
+ mkdir( "/mnt", 0777 );
int_status = mount(
NULL, /* mount_table_entry_pointer */
&nfs_fs_ops, /* filesystem_operations_table_pointer */
RTEMS_FILESYSTEM_READ_WRITE, /* options */
- "192.168.1.210:/home", /* device aka remote filesystem */
- "/home" /* mount_point */
+ /* device aka remote filesystem */
+ RTEMS_NFS_SERVER ":" RTEMS_NFS_SERVER_PATH,
+ "/mnt" /* mount_point */
);
#endif
if ( int_status )
printf( "NFS Mount failed -- %s\n", strerror(errno) );
printf("============== Look at Remote Filesystem ==============\n");
- printf( "\n---> ls /home\n" );
- ls("/home");
- printf( "\n---> ls /home/nfstest\n" );
- ls("/home/nfstest");
+ printf( "\n---> ls /mnt\n" );
+ ls( "/mnt" );
+ printf( "\n---> ls %s\n", RTEMS_NFS_LS_PATH );
+ ls( RTEMS_NFS_LS_PATH );
exit(0);