* Re: [gentoo-user] mount nfs thru mount system call
2006-03-08 19:55 [gentoo-user] mount nfs thru mount system call c.s.prakash
@ 2006-03-08 13:15 ` Josh Helmer
2006-03-08 21:07 ` Petr Uzel
2006-03-08 21:46 ` [gentoo-user] mount nfs thru mount system call DebianTux23
1 sibling, 1 reply; 10+ messages in thread
From: Josh Helmer @ 2006-03-08 13:15 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] mount nfs thru mount system call
2006-03-08 21:07 ` Petr Uzel
@ 2006-03-08 14:37 ` Josh Helmer
2006-03-08 22:04 ` Darryl Wagoner
2006-03-08 22:26 ` [gentoo-user] Good Game?? wieseltux23
0 siblings, 2 replies; 10+ messages in thread
From: Josh Helmer @ 2006-03-08 14:37 UTC (permalink / raw
To: gentoo-user
On Wednesday 08 March 2006 21:07, Petr Uzel wrote:
> IMHO it's easier to look at 'man 2 mount' :
>
> ...
> Values for the filesystemtype argument supported by the kernel are listed
> in /proc/filesystems (like "minix", "ext2", "msdos", "proc", "nfs",
> "iso9660" etc.).
man 2 mount is not going to help. If you had looked closer you would realize
that the "data" argument is the last argument not the filesystem type. The
man page only says that the data argument is "typically" a comma separated
string. I don't believe that is the case with NFS.
Josh
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] mount nfs thru mount system call
2006-03-08 22:04 ` Darryl Wagoner
@ 2006-03-08 15:37 ` Josh Helmer
0 siblings, 0 replies; 10+ messages in thread
From: Josh Helmer @ 2006-03-08 15:37 UTC (permalink / raw
To: gentoo-user
On Wednesday 08 March 2006 22:04, Darryl Wagoner wrote:
> On 3/8/06, Josh Helmer <joshhelmer@cox.net> wrote:
> > man 2 mount is not going to help. If you had looked closer you would
> > realize
> > that the "data" argument is the last argument not the filesystem
> > type. The
> > man page only says that the data argument is "typically" a comma
> > separated string. I don't believe that is the case with NFS.
>
> Why not? I would try something like for data:
>
> rsize=8192,wsize=8192,soft. Check nfs(5) for details.
OK... I did some googling...
Source: http://www.die.net/doc/linux/man/man8/mount.8.html
"""
Instead of a textual option string, parsed by the kernel, the nfs file system
expects a binary argument of type struct nfs_mount_data. The program mount
itself parses the following options of the form `tag=value', and puts them in
the structure mentioned: rsize=n, wsize=n, timeo=n, retrans=n, acregmin=n,
acregmax=n, acdirmin=n, acdirmax=n, actimeo=n, retry=n, port=n, mountport=n,
mounthost=name, mountprog=n, mountvers=n, nfsprog=n, nfsvers=n, namlen=n. The
option addr=n is accepted but ignored. Also the following Boolean options,
possibly preceded by no are recognized: bg, fg, soft, hard, intr, posix, cto,
ac, tcp, udp, lock. For details, see nfs(5).
"""
I would still recommend looking into the mount source code. If I remember
correctly, there is more to it than just creating a struct and populating it.
I seem to recall that I also had to do something to register the remote
export with the local machine. I vaguely remember fighting to have to get
something to show up in /proc before I could successfully mount a filesystem.
Josh
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-user] mount nfs thru mount system call
@ 2006-03-08 19:55 c.s.prakash
2006-03-08 13:15 ` Josh Helmer
2006-03-08 21:46 ` [gentoo-user] mount nfs thru mount system call DebianTux23
0 siblings, 2 replies; 10+ messages in thread
From: c.s.prakash @ 2006-03-08 19:55 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 232 bytes --]
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
--
C.S.Prakash
[-- Attachment #2: Type: text/html, Size: 300 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] mount nfs thru mount system call
2006-03-08 13:15 ` Josh Helmer
@ 2006-03-08 21:07 ` Petr Uzel
2006-03-08 14:37 ` Josh Helmer
0 siblings, 1 reply; 10+ messages in thread
From: Petr Uzel @ 2006-03-08 21:07 UTC (permalink / raw
To: gentoo-user
> 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.
IMHO it's easier to look at 'man 2 mount' :
...
Values for the filesystemtype argument supported by the kernel are listed
in /proc/filesystems (like "minix", "ext2", "msdos", "proc", "nfs",
"iso9660" etc.).
...
But I also can't help more...
Petr
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] mount nfs thru mount system call
2006-03-08 19:55 [gentoo-user] mount nfs thru mount system call c.s.prakash
2006-03-08 13:15 ` Josh Helmer
@ 2006-03-08 21:46 ` DebianTux23
1 sibling, 0 replies; 10+ messages in thread
From: DebianTux23 @ 2006-03-08 21:46 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 38 bytes --]
*www.wolfspakt.de/spiel.php?id=7358*
[-- Attachment #2: Type: text/html, Size: 99 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] mount nfs thru mount system call
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
1 sibling, 1 reply; 10+ messages in thread
From: Darryl Wagoner @ 2006-03-08 22:04 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 576 bytes --]
On 3/8/06, Josh Helmer <joshhelmer@cox.net> wrote:
>
>
> man 2 mount is not going to help. If you had looked closer you would
> realize
> that the "data" argument is the last argument not the filesystem
> type. The
> man page only says that the data argument is "typically" a comma separated
> string. I don't believe that is the case with NFS.
>
Why not? I would try something like for data:
rsize=8192,wsize=8192,soft. Check nfs(5) for details.
--
Darryl Wagoner - WA1GON
"Evil triumphs when good men do nothing." - Edmund Burke [1729-1797]
[-- Attachment #2: Type: text/html, Size: 956 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-user] Good Game??
2006-03-08 14:37 ` Josh Helmer
2006-03-08 22:04 ` Darryl Wagoner
@ 2006-03-08 22:26 ` wieseltux23
2006-03-08 22:42 ` Heiko Wundram
1 sibling, 1 reply; 10+ messages in thread
From: wieseltux23 @ 2006-03-08 22:26 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 788 bytes --]
www.wolfspakt.de/spiel.php?id=7358
On Wed, 8 Mar 2006 14:37:19 +0000
Josh Helmer <joshhelmer@cox.net> wrote:
> On Wednesday 08 March 2006 21:07, Petr Uzel wrote:
> > IMHO it's easier to look at 'man 2 mount' :
> >
> > ...
> > Values for the filesystemtype argument supported by the kernel are listed
> > in /proc/filesystems (like "minix", "ext2", "msdos", "proc", "nfs",
> > "iso9660" etc.).
>
> man 2 mount is not going to help. If you had looked closer you would realize
> that the "data" argument is the last argument not the filesystem type. The
> man page only says that the data argument is "typically" a comma separated
> string. I don't believe that is the case with NFS.
>
> Josh
> --
> gentoo-user@gentoo.org mailing list
>
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Good Game??
2006-03-08 22:26 ` [gentoo-user] Good Game?? wieseltux23
@ 2006-03-08 22:42 ` Heiko Wundram
2006-03-08 23:50 ` Michael Sullivan
0 siblings, 1 reply; 10+ messages in thread
From: Heiko Wundram @ 2006-03-08 22:42 UTC (permalink / raw
To: gentoo-user
Am Mittwoch, 8. März 2006 23:26 schrieb wieseltux23:
> www.wolfspakt.de/spiel.php?id=7358
For all people who haven't looked there yet, this is a crappy german
advertising game, in which the player gets points for the number of people
visiting his "site."
So: don't go look there, this has absolutely nothing to do with this thread.
--
--- Heiko.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Good Game??
2006-03-08 22:42 ` Heiko Wundram
@ 2006-03-08 23:50 ` Michael Sullivan
0 siblings, 0 replies; 10+ messages in thread
From: Michael Sullivan @ 2006-03-08 23:50 UTC (permalink / raw
To: gentoo-user
On Wed, 2006-03-08 at 23:42 +0100, Heiko Wundram wrote:
> Am Mittwoch, 8. März 2006 23:26 schrieb wieseltux23:
> > www.wolfspakt.de/spiel.php?id=7358
>
> For all people who haven't looked there yet, this is a crappy german
> advertising game, in which the player gets points for the number of people
> visiting his "site."
>
> So: don't go look there, this has absolutely nothing to do with this thread.
>
> --
> --- Heiko.
>
Anyway, the site's in German and I haven't gotten around to learning it
yet...
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-03-08 23:55 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-08 19:55 [gentoo-user] mount nfs thru mount system call c.s.prakash
2006-03-08 13:15 ` Josh Helmer
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox