From owner-freebsd-hackers Mon Jan 27 9:50: 0 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5B7C37B401 for ; Mon, 27 Jan 2003 09:49:58 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBE5243EB2 for ; Mon, 27 Jan 2003 09:49:57 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h0RHnuQl024171; Mon, 27 Jan 2003 18:49:56 +0100 (CET) (envelope-from phk@freebsd.org) To: Rohit Grover Cc: freebsd-hackers@freebsd.org Subject: Re: having trouble understanding something about ccd From: phk@freebsd.org In-Reply-To: Your message of "Mon, 27 Jan 2003 09:38:06 PST." <200301270938.06988.rgrover@panasas.com> Date: Mon, 27 Jan 2003 18:49:56 +0100 Message-ID: <24170.1043689796@critter.freebsd.dk> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200301270938.06988.rgrover@panasas.com>, Rohit Grover writes: >Hello, > >This question is for the current maintainer(s) of ccd. The email >listed in ccd.c is invalid. > >In ccdioctl, for the command CCDIOCSET, ccdgetdisklabel() is called >after ccdinit(). In ccdgetdisklabel(), the raw partition's size is >initialized (to a value computed by ccdinit()) before calling >readdisklabel() which overwrites it with stuff read off the >media. This results in the loss of the computed value for size. Could >you please shed some light on the merits of this sequence of actions. I think this code is largely overtaken by events, as recently as a few days ago I ripped out the entire disklabel-fiddling code from CCD and set it to use the systems default code instead. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message