From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FH57s-0005ef-5i for garchives@archives.gentoo.org; Wed, 08 Mar 2006 20:19:16 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k28KIBEA000790; Wed, 8 Mar 2006 20:18:11 GMT Received: from ukko.deru.net (ukko.deru.net [140.99.28.50]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k28KDnY7024735 for ; Wed, 8 Mar 2006 20:13:50 GMT Received: from [67.139.146.226] (helo=[192.168.16.29]) by ukko.deru.net with esmtpsa (TLSv1:EXP1024-RC4-SHA:128) (Exim 4.43) id 1FH52a-0005W4-DM for gentoo-user@lists.gentoo.org; Wed, 08 Mar 2006 13:13:48 -0700 From: Josh Helmer 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 User-Agent: KMail/1.9 References: In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200603081315.01574.joshhelmer@cox.net> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ukko.deru.net X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - cox.net X-Source: X-Source-Args: X-Source-Dir: X-Archives-Salt: 2fad5869-7955-48f0-8a0f-cfc0eb3d00f1 X-Archives-Hash: 0b70b07dfee36c8fb669969e9021bf3d 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