From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wouter Batelaan Subject: mismatch between 2.6.19 and nfs-utils-1.0.10 nfsctl_arg structure??? Date: Tue, 20 Feb 2007 18:05:37 +0000 Message-ID: <45DB3871.5070604@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: "linux-fsdevel@vger.kernel.org" Return-path: Received: from gw-eur5.philips.com ([161.85.125.12]:58001 "EHLO gw-eur5.philips.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932518AbXBTSkv (ORCPT ); Tue, 20 Feb 2007 13:40:51 -0500 Received: from gw-eur4.philips.com (gw-eur4.philips.com [161.85.125.10]) by gw-eur5.philips.com (Postfix) with ESMTP id 2B93249773 for ; Tue, 20 Feb 2007 18:07:25 +0000 (UTC) Received: from smtpscan-eur5.philips.com (smtpscan-eur5.mail.philips.com [130.144.57.168]) by gw-eur4.philips.com (Postfix) with ESMTP id 0DDFF4970D for ; Tue, 20 Feb 2007 18:06:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by localhost.philips.com (Postfix) with SMTP id 84B3B43D5 for ; Tue, 20 Feb 2007 18:06:23 +0000 (GMT) Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hi, I'm trying to get an nfs server setup on our embedded 2.6.19 kernel system. I've chosen to use the kernel nfsd module, and am using the latest nfs-utils. It all starts running, but I get this: mount -t nfs 127.0.0.1:/etc /tmp/try mount: 127.0.0.1:/etc failed, reason given by server: Permission denied mount: nfsmount failed: Bad file descriptor mount: Mounting 127.0.0.1:/etc on /tmp/try failed: Bad file descriptor Having added a bit of debugging /var/log/messages shows this: daemon.warn mountd[545]: getfh.c:73: getfh_size (/etc) daemon.warn mountd[545]: nfsctl.c:26: syscall nfsctl daemon.warn mountd[545]: nfsctl.c:28: syscall nfsctl => -1 daemon.warn mountd[545]: getfh failed: Operation not permitted Looking in detail at the syscall made, I see that the structure definition for nfsctl_arg is different between kernel and nfs-utils. Huh? What am I missing here? Any pointers appreciated. Wouter. Kernel 2.6.19.1: include/linux/nfsd/syscall.h: struct nfsctl_arg { int ca_version; /* safeguard */ union { struct nfsctl_svc u_svc; struct nfsctl_client u_client; struct nfsctl_export u_export; struct nfsctl_fdparm u_getfd; struct nfsctl_fsparm u_getfs; void *u_ptr; } u; nfs-utils 1.0.10: support/include/nfs/nfs.h: struct nfsctl_arg { int ca_version; /* safeguard */ union { struct nfsctl_svc u_svc; struct nfsctl_client u_client; struct nfsctl_export u_export; struct nfsctl_uidmap u_umap; struct nfsctl_fhparm u_getfh; struct nfsctl_fdparm u_getfd; struct nfsctl_fsparm u_getfs; } u;