Changeset 6d031d5 in network-demos


Ignore:
Timestamp:
Jul 18, 2007, 7:33:53 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master, network-demos-4-10-branch, network-demos-4-8-branch, network-demos-4-9-branch
Children:
eb241c3
Parents:
cd8aff0
Message:

2007-07-18 Joel Sherrill <joel.sherrill@…>

  • init.c: Make the NFS server, remote filesystem, and directory to look at configurable.
Location:
nfsClientTest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nfsClientTest/ChangeLog

    rcd8aff0 r6d031d5  
     12007-07-18      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * init.c: Make the NFS server, remote filesystem, and directory to look
     4        at configurable.
     5
    162007-07-18      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • nfsClientTest/init.c

    rcd8aff0 r6d031d5  
    126126#if 1
    127127  /* This code uses the NFS mount wrapper function */
    128   int_status = nfsMount("192.168.1.210", "/home", "/home" );
     128  int_status = nfsMount( RTEMS_NFS_SERVER, RTEMS_NFS_SERVER_PATH, "/mnt" );
    129129#else
    130130  /* This section does it more explicitly */
    131   mkdir( "/home", 0777 );
     131  mkdir( "/mnt", 0777 );
    132132  int_status = mount(
    133133    NULL,                        /* mount_table_entry_pointer */
    134134    &nfs_fs_ops,                 /* filesystem_operations_table_pointer */
    135135    RTEMS_FILESYSTEM_READ_WRITE, /* options */
    136     "192.168.1.210:/home",       /* device aka remote filesystem */
    137     "/home"                      /* mount_point */
     136                                 /* device aka remote filesystem */
     137    RTEMS_NFS_SERVER ":" RTEMS_NFS_SERVER_PATH,
     138    "/mnt"                       /* mount_point */
    138139  );
    139140#endif
     
    142143
    143144  printf("============== Look at Remote Filesystem ==============\n");
    144   printf( "\n---> ls /home\n" );
    145   ls("/home");
    146   printf( "\n---> ls /home/nfstest\n" );
    147   ls("/home/nfstest");
     145  printf( "\n---> ls /mnt\n" );
     146  ls( "/mnt" );
     147  printf( "\n---> ls %s\n", RTEMS_NFS_LS_PATH );
     148  ls( RTEMS_NFS_LS_PATH );
    148149
    149150  exit(0);
Note: See TracChangeset for help on using the changeset viewer.