misc/84953: NFS locking issue in RELENG_6/i386/SMP

Vladimir Sharun sharun at ukr.net
Mon Aug 15 14:40:14 GMT 2005

>Number:         84953
>Category:       misc
>Synopsis:       NFS locking issue in RELENG_6/i386/SMP
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 15 14:40:13 GMT 2005
>Originator:     Vladimir Sharun
>Release:        FreeBSD6
UkrNet ISP
FreeBSD krokodil.ukr.net 6.0-BETA2 FreeBSD 6.0-BETA2 #5: Sun Aug  7 19:15:28 EEST 2005     root at krokodil.ukr.net:/usr/obj/usr/src/sys/FISH.MP  i386
While setting a lock via fcntl on NFSv3 mount point, we stuck in uninterruptible wait (ps axc show D state for process.
Mounting NFS share without rpcbind/rpc.statd/rpc.lockd gaves errno 45 EOPNOTSUPP Operation not supported
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>

int main() {
  int lockfd;
  char* tempfile="/mnt/nfs/testfile";

  printf("Open errno:   %d\n",errno);
  if (flock(lockfd, LOCK_SH|LOCK_NB)==-1) {
    printf("ERROR shared lock:  %d\n",errno);
  if (flock(lockfd, LOCK_EX|LOCK_NB)==-1) {
    printf("ERROR exclusive lock:  %d\n",errno);

Rollback to RELENG_5

More information about the freebsd-bugs mailing list