RTEMS NFS network example code.

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Jun 16 11:02:39 UTC 2014


On 2014-06-16 12:13, Thomas Kim wrote:
> Dear Sir,
>
> I have tried to test TFTP client. but, I was failed.
> also, I want to try to test NFS client.
>
> Is there NFS client example code ?

You just have to specify the NFS server path as the device path in mount():

   rv = mount_and_make_target_path(
     "1000.100 at 192.168.96.31:/srv/nfs",
     "/nfs",
     RTEMS_FILESYSTEM_TYPE_NFS,
     RTEMS_FILESYSTEM_READ_WRITE,
     NULL
   );
   assert(rv == 0);




-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


More information about the users mailing list