From owner-cvs-all Sun Nov 22 15:44:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA27269 for cvs-all-outgoing; Sun, 22 Nov 1998 15:44:43 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA27264; Sun, 22 Nov 1998 15:44:42 -0800 (PST) (envelope-from ken@FreeBSD.org) From: Kenneth Merry Received: (from ken@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id PAA02112; Sun, 22 Nov 1998 15:44:47 -0800 (PST) Date: Sun, 22 Nov 1998 15:44:47 -0800 (PST) Message-Id: <199811222344.PAA02112@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/cam/scsi scsi_cd.c scsi_ch.c scsi_pass.c scsi_pt.c scsi_sa.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk ken 1998/11/22 15:44:47 PST Modified files: sys/cam/scsi scsi_cd.c scsi_ch.c scsi_pass.c scsi_pt.c scsi_sa.c Log: Fix a few problems that Bruce noticed about a month ago, and fix oup one other problem. - Hold onto splsoftcam() in the peripheral driver open routines until we have locked the periph. This eliminates a race condition. - Disallow opening the pass driver when securelevel > 1. - If a user tries to open the pass driver with O_NONBLOCK set, return EINVAL instead of ENODEV. (noticed by gibbs) Revision Changes Path 1.9 +9 -3 src/sys/cam/scsi/scsi_cd.c 1.6 +6 -3 src/sys/cam/scsi/scsi_ch.c 1.5 +21 -8 src/sys/cam/scsi/scsi_pass.c 1.4 +6 -3 src/sys/cam/scsi/scsi_pt.c 1.5 +4 -2 src/sys/cam/scsi/scsi_sa.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message