From: AK Subject: POSIX I/O on NFS with noac option Date: Thu, 12 Apr 2007 09:59:05 -0700 (PDT) Message-ID: <949021.41130.qm@web56603.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1864236004==" To: nfs@lists.sourceforge.net Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1Hc2dg-0006Df-Kp for nfs@lists.sourceforge.net; Thu, 12 Apr 2007 09:59:17 -0700 Received: from web56603.mail.re3.yahoo.com ([66.196.97.47]) by mail.sourceforge.net with smtp (Exim 4.44) id 1Hc2dh-0000rL-Ob for nfs@lists.sourceforge.net; Thu, 12 Apr 2007 09:59:19 -0700 List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net --===============1864236004== Content-Type: multipart/alternative; boundary="0-539082517-1176397145=:41130" Content-Transfer-Encoding: 7bit --0-539082517-1176397145=:41130 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Trying to get this POSIX I/O code to work on our machines. Running it from a NFS v3 mounted scratch sapce, with 'noac' option: no ca= ching attribute option. It fails to run: gives me err=3D -1 and errno =3D 5 Although this works without error on my NFS v3 mounted home directories. Which are mounted from the head node of our cluster(Linux ba= sed head node and compute nodes). =20 Where as the scratch sapce is mounted of our storage server(Solaris). Any= thoughts on issues related to Solars hosting NFS server and Linux nfs cl= ient ..with noac options ??? Any idea ? Appreciate any feedback ~thanks - ak #include #include #include main() { struct flock lock; int fd, err; lock.l_type =3D F_WRLCK; lock.l_start =3D 0; lock.l_whence =3D SEEK_SET; lock.l_len =3D 100; fd =3D open("test", O_RDWR | O_CREAT, 0644); err =3D fcntl(fd, F_SETLKW, &lock); printf("err =3D %d, errno =3D %d\n", err, errno); close(fd); } =20 --------------------------------- Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. --0-539082517-1176397145=:41130 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Trying to get this = POSIX I/O code to work on our machines.

Running it from a NFS v3 m= ounted scratch sapce, with 'noac' option: no caching attribute option.It fails to run: gives me err=3D -1 and errno =3D 5

Although this= works without error on my NFS v3 mounted home
directories. Which are = mounted from the head node of our cluster(Linux based head node and compu= te nodes).

Where as the scratch sapce is mounted of our storage ser= ver(Solaris). Any thoughts on issues related to Solars hosting NFS server= and Linux nfs client ..with noac options ???

Any idea ? Appreciat= e any feedback
~thanks - ak

#include <fcntl.h>
#includ= e <errno.h>
#include <unistd.h>

main()
{
&nbs= p;  struct flock lock;
   int fd, err;

  &n= bsp;lock.l_type =3D F_WRLCK;
   lock.l_start =3D 0;
   lock.l_whence =3D SEEK_SET;   lock.l_len =3D 100;

   fd =3D open("test",= O_RDWR | O_CREAT, 0644);

   err =3D fcntl(fd, F_SETLKW,= &lock);

   printf("err =3D %d, errno =3D %d\n", err= , errno);
   close(fd);
}


Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from= Yahoo! Answers users. --0-539082517-1176397145=:41130-- --===============1864236004== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --===============1864236004== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs --===============1864236004==--