On Wednesday 08 March 2006 19:55, c.s.prakash wrote: > when i mount the nfs through the system call > > mount("192.168.0.51:/root", "/mnt/9", "nfs", 0, "rw, async"); > > it shows an invalid argument. but when i do this thru mount command it > mounts without any problem
It's been about 4 years since I last had to do that (so no guarantees), but If I remember correctly the data argument for NFS is not just a string. Instead I believe that you have to do some other magic to encode the data correctly. I would recommend looking at the source code for mount and see what happens. Josh -- gentoo-user@gentoo.org mailing list