From owner-cvs-all Sat Oct 17 02:46:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA19330 for cvs-all-outgoing; Sat, 17 Oct 1998 02:46:47 -0700 (PDT) (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 CAA19322; Sat, 17 Oct 1998 02:46:44 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA08095; Sat, 17 Oct 1998 02:46:42 -0700 (PDT) Date: Sat, 17 Oct 1998 02:46:42 -0700 (PDT) Message-Id: <199810170946.CAA08095@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/kern subr_diskslice.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk bde 1998/10/17 02:46:42 PDT Modified files: sys/kern subr_diskslice.c Log: Overload the correct errno for attempts to set an in-core label with a raw partition at a nonzero offset (EINVAL should have been EXDEV; DIOCSDINFO was broken, and DIOCWDINFO was broken because it depended on DIOCSDINFO). A zero offset for the raw partition should probably be enforced in setdisklabel(), and DIOCWDINFO should probably always be handled by first calling setdisklabel() so that writedisklabel() doesn't need to enforce it, but this has never been done; dsioctl() has a special check. Changes in this commit are limited to dsioctl() to preserve bug for bug compatibility in drivers that don't use the slice code (notably the ccd driver, which allows setting a bogus label in DIOCWDINFO and doesn't undo the setting when writedisklabel() fails). Revision Changes Path 1.59 +2 -2 src/sys/kern/subr_diskslice.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message