看板 FB_bugs 關於我們 聯絡資訊
>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: _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"