Date: Tue, 09 Jun 2009 12:38:02 +0300 From: Danny Braniss <danny@cs.huji.ac.il> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/135412: zfs(v13)+nfs and open(..., O_WRONLY|O_CREAT|O_EXCL, ...) returns io error Message-ID: <E1MDxmM-0001HJ-0g@store-01.cs.huji.ac.il> Resent-Message-ID: <200906091020.n59AK4xn054439@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1MDxmM-0001HJ-0g>