From owner-cvs-sys Mon May 8 09:25:38 1995 Return-Path: cvs-sys-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA03989 for cvs-sys-outgoing; Mon, 8 May 1995 09:25:38 -0700 Received: (from bde@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA03921 ; Mon, 8 May 1995 09:24:12 -0700 Date: Mon, 8 May 1995 09:24:12 -0700 From: Bruce Evans Message-Id: <199505081624.JAA03921@freefall.cdrom.com> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/kern subr_diskslice.c Sender: cvs-sys-owner@freebsd.org Precedence: bulk bde 95/05/08 09:24:11 Modified: sys/kern subr_diskslice.c Log: Fix reopening of open subdevices for DIOCSYNCSLICEINFO: Reopen the bdev for the raw partition and not the cdev if only the bdev was open. Don't use a bogus limit for the number of partitions to possibly reopen (bug found by Julian). Add function dssize() to help fix wdsize() and sdsize(). The slice layer knows more about (un)open partitions and partition sizes than the driver layer.