From: Josh Helmer <joshhelmer@cox.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] mount nfs thru mount system call
Date: Wed, 8 Mar 2006 13:15:01 +0000 [thread overview]
Message-ID: <200603081315.01574.joshhelmer@cox.net> (raw)
In-Reply-To: <a2bb9e1f0603081155l46d441cbna5af5bc60c34603d@mail.gmail.com>
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
next prev parent reply other threads:[~2006-03-08 20:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-08 19:55 [gentoo-user] mount nfs thru mount system call c.s.prakash
2006-03-08 13:15 ` Josh Helmer [this message]
2006-03-08 21:07 ` Petr Uzel
2006-03-08 14:37 ` Josh Helmer
2006-03-08 22:04 ` Darryl Wagoner
2006-03-08 15:37 ` Josh Helmer
2006-03-08 22:26 ` [gentoo-user] Good Game?? wieseltux23
2006-03-08 22:42 ` Heiko Wundram
2006-03-08 23:50 ` Michael Sullivan
2006-03-08 21:46 ` [gentoo-user] mount nfs thru mount system call DebianTux23
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200603081315.01574.joshhelmer@cox.net \
--to=joshhelmer@cox.net \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox