All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gabor Z. Papp" <gzp-2g/1Y3AqmNE@public.gmane.org>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH] mount.nfs command: old glibc missing some flags
Date: Wed, 30 Jul 2008 08:50:59 +0200	[thread overview]
Message-ID: <x6y73jyiek@gzp> (raw)
In-Reply-To: 20080729161512.7588.18445.stgit@manray.1015granger.net

[-- Attachment #1: Type: text/plain, Size: 964 bytes --]

* Chuck Lever <chuck.lever@oracle.com>:

| Untested.  Gabor, can you please try this?

Compiled fine.

utils/mountd/Makefile:

LIBBLKID = -lblkid

-lblkid doesn't enough in dependency, needs -luuid

Is this problem in my e2fsprogs install?

BTW, I'm not sure about usage of sm-notify

My nfs startup script looks like:

idmapd
exportfs -ar
mountd
statd #--no-notify
nfsd 8

$ ps fax
10860 ?        Ss     0:00 mountd
10862 ?        Ss     0:00 statd
10875 ?        S      0:00 [nfsd]
10876 ?        S      0:00 [nfsd]
10886 ?        S      0:00 [lockd]
10887 ?        S      0:00  \_ [rpciod]
10888 ?        S      0:00 [nfsd]
10889 ?        S      0:00 [nfsd]
10890 ?        S      0:00 [nfsd]
10891 ?        S      0:00 [nfsd]
10892 ?        S      0:00 [nfsd]
10893 ?        S      0:00 [nfsd]

Looks like no sm-notify started, even I mount something from a remote
host. If I start sm-notify by hand, it exist, strace output attached.
Same apply on glibc 2.3.


[-- Attachment #2: strace --]
[-- Type: application/octet-stream, Size: 3075 bytes --]

execve("/pkg/bin/sm-notify", ["/pkg/bin/sm-notify"], [/* 19 vars */]) = 0
uname({sys="Linux", node="gzpLinux", ...}) = 0
brk(0)                                  = 0x804bac4
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=17615, ...}) = 0
mmap2(NULL, 17615, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\206\1\0004\0\0\0"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=9861792, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
mmap2(NULL, 1158784, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001a000
mprotect(0x4012c000, 36480, PROT_NONE)  = 0
mmap2(0x4012c000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x111) = 0x4012c000
mmap2(0x40131000, 16000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40131000
close(3)                                = 0
munmap(0x40014000, 17615)               = 0
getpid()                                = 10899
open("/var/run/sm-notify.pid", O_WRONLY|O_CREAT|O_EXCL, 0600) = 3
write(3, "10899\n", 6)                  = 6
close(3)                                = 0
uname({sys="Linux", node="gzpLinux", ...}) = 0
open("/var/lib/nfs/sm", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
brk(0)                                  = 0x804bac4
brk(0x804cb0c)                          = 0x804cb0c
brk(0x804d000)                          = 0x804d000
getdents64(3, /* 2 entries */, 4096)    = 48
getdents64(3, /* 0 entries */, 4096)    = 0
close(3)                                = 0
open("/var/lib/nfs/sm.bak", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents64(3, /* 2 entries */, 4096)    = 48
getdents64(3, /* 0 entries */, 4096)    = 0
close(3)                                = 0
open("/var/lib/nfs/state", O_RDONLY)    = 3
read(3, "", 4)                          = 0
write(2, "/var/lib/nfs/state: bad file siz"..., 52/var/lib/nfs/state: bad file size, setting state = 1) = 52
write(2, "\n", 1
)                       = 1
close(3)                                = 0
open("/var/lib/nfs/state.new", O_WRONLY|O_CREAT, 0644) = 3
write(3, "\3\0\0\0", 4)                 = 4
close(3)                                = 0
rename("/var/lib/nfs/state.new", "/var/lib/nfs/state") = 0
sync()                                  = 0
open("/proc/sys/fs/nfs/nsm_local_state", O_WRONLY) = -1 ENOENT (No such file or directory)
fstat64(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
fork()                                  = 10900
--- SIGCHLD (Child exited) @ 0 (0) ---
_exit(0)                                = ?

  reply	other threads:[~2008-07-30  6:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-29 16:16 [PATCH] mount.nfs command: old glibc missing some flags Chuck Lever
2008-07-30  6:50 ` Gabor Z. Papp [this message]
2008-07-30 18:02   ` Chuck Lever
2008-07-30 19:00   ` Steve Dickson
2008-07-30 19:20     ` Gabor Z. Papp
2008-07-30 19:48       ` Steve Dickson
2008-07-30 20:37         ` Gabor Z. Papp
2008-07-30 23:18           ` Neil Brown
  -- strict thread matches above, loose matches on Subject: below --
2008-07-30 23:58 Chuck Lever
     [not found] ` <20080730235637.1447.42422.stgit-lQeC5l55kZ7wdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-07-31  9:28   ` Steve Dickson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x6y73jyiek@gzp \
    --to=gzp-2g/1y3aqmne@public.gmane.org \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.