From owner-cvs-all Mon Oct 19 17:07:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA07447 for cvs-all-outgoing; Mon, 19 Oct 1998 17:07:24 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from jamesn.locker13.com (nix.what.net [207.136.36.36]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA07382; Mon, 19 Oct 1998 17:07:09 -0700 (PDT) (envelope-from nix!FreeBSD.ORG!majordom@nix.what.net) Received: from localhost (3049 bytes) by jamesn.locker13.com via sendmail with P:stdio/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) (ident using unix) id for ; Mon, 19 Oct 1998 19:04:05 -0500 (CDT) (Smail-3.2.0.101 1997-Dec-17 #2 built 1998-May-10) Received: from nix.UUCP (uucp@localhost) by here.what.net (8.9.1/8.9.1) with UUCP id EAA22698 for jamesn; Sat, 17 Oct 1998 04:49:49 -0500 (CDT) (envelope-from nix!FreeBSD.ORG!majordom) Received: from localhost (2579 bytes) by jamesn.locker13.com via sendmail with P:stdio/R:paths/T:uux (sender: ) (ident using unix) id for ; Sat, 17 Oct 1998 04:46:42 -0500 (CDT) (Smail-3.2.0.101 1997-Dec-17 #2 built 1998-May-10) Received: from hub.freebsd.org(src addr [204.216.27.18]) (2243 bytes) by jamesn.locker13.com via sendmail with P\:esmtp/D:aliases/T:pipe (sender: ) id for ; Sat, 17 Oct 1998 04:46:41 -0500 (CDT) (Smail-3.2.0.101 1997-Dec-17 #2 built 1998-May-10) Delivered-To: vmailer-cvs-all@freebsd.org Received: by hub.freebsd.org (VMailer, from userid 1) id 3F8889C4E; Sat, 17 Oct 1998 02:46:49 -0700 (PDT) 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message