public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Reading libs fails through NFS
@ 2003-11-17  0:45 J.A. Magallon
  2003-11-17  1:24 ` Trond Myklebust
  2003-11-17  1:29 ` Valdis.Kletnieks
  0 siblings, 2 replies; 4+ messages in thread
From: J.A. Magallon @ 2003-11-17  0:45 UTC (permalink / raw)
  To: Lista Linux-Kernel; +Cc: Lista Linux-BProc

Hi all...

Anybody has any idea about why this fails:

    fd = open("/lib/libnss_files.so.2", O_RDONLY);
    res = read(fd,buf,512);

/lib is NFS mounted:

192.168.0.1:/lib on /lib type nfs (ro,noatime,nfsvers=3,nolock,addr=192.168.0.1)

and the read fails.
The original code does a getprotobyname("tcp") (netpipe), that fails when it
tries to read the same lib.

The node boots via PXE, with a version of libnss_files.so.2 on the /lib present
in the initrd, which is replaced by the mounted one.

TIA

-- 
J.A. Magallon <jamagallon()able!es>     \                 Software is like sex:
werewolf!able!es                         \           It's better when it's free
Mandrake Linux release 10.0 (Cooker) for i586
Linux 2.4.23-rc1-jam2 (gcc 3.3.1 (Mandrake Linux 9.2 3.3.1-4mdk))

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-11-23  0:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-17  0:45 Reading libs fails through NFS J.A. Magallon
2003-11-17  1:24 ` Trond Myklebust
2003-11-23  0:57   ` [BProc] " J.A. Magallon
2003-11-17  1:29 ` Valdis.Kletnieks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox