> > int main()
> > {
> > struct nfs_mount_data data;
> > mount("192.168.1.102:/home/nilesh","/mnt/mp","nfs",0xC0ED0000,&data);
> > }
> > It dosent work and says Invalid arguments. Actually I dont know what to
> > fill in 'data'.
>
> Pass it as NULL and see. Also, Where did you get 0xC0ED0000 from?
NULL wont work here. It works if the I mount local filesystem or
partition. But not with nfs.
Actually last argument 'data', is filesystem specific. We've to pass
necessary information in it. So here data is instance of structure named
'nfs_mount_data'. The problem is, what should be the value this structure.
How can I fill the 'data' and pass it to mount(2).
The second last argument is mount options, we've many options like RDONLY,
NODEV.... and so on.
Nilesh
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help