kern/135412: zfs(v13)+nfs and open(..., O_WRONLY|O_CREAT|O_EXCL,
...) returns io error
Danny Braniss
danny at cs.huji.ac.il
Tue Jun 9 10:20:05 UTC 2009
>Number: 135412
>Category: kern
>Synopsis: zfs(v13)+nfs and open(..., O_WRONLY|O_CREAT|O_EXCL, ...) returns io error
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jun 09 10:20:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Danny Braniss
>Release: FreeBSD 7.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD store-01 7.2-STABLE FreeBSD 7.2-STABLE #24: Mon Jun 1 12:17:54 IDT 2009 danny at sunfire:/r+d/obj/sunfire/r+d/7/sys/HUJI amd64
>Description:
a file system(zfs-v13) NFS mounted now fails
fd = open(..., O_WRONLY|O_CREAT|O_EXCL, 0666);
file is created with mode 0, and errno=Input/output errno(5).
>How-To-Repeat:
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
main(int cc, char **vv)
{
int fd;
char *fn;
if(cc > 1)
fn = vv[1];
else
fn = "lock";
fd = open(fn, O_WRONLY|O_CREAT|O_EXCL, 0666);
if(fd < 0) {
int err = errno;
fprintf(stderr, "%d - %s\n", err, strerror(err));
}
exit(0);
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list