I am trying to mount a source directory from nfs server to a destination directory in embedded board having linux. The following command works perfectly as expected in shell
It solved by the following call for me now.
if(system("mount -t nfs -o nolock 10.126.62.45:/vol/home/avinoba/Sky /mnt")==-1); { printf("ERROR: mount failed \n"); }
But still searching for the answer with mount() call as it accepts 'filesystemtype' argument as "nfs".