From owner-freebsd-geom@FreeBSD.ORG Sun Jan 25 22:28:09 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4387B16A4CE; Sun, 25 Jan 2004 22:28:09 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id C410C43D31; Sun, 25 Jan 2004 22:28:07 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id i0Q6RxuO062002; Mon, 26 Jan 2004 07:28:05 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: slick From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 25 Jan 2004 23:09:11 EST." Date: Mon, 26 Jan 2004 07:27:59 +0100 Message-ID: <62001.1075098479@critter.freebsd.dk> cc: hackers@freebsd.org cc: freebsd-geom@freebsd.org Subject: Re: code compatibility between normal and geom methods for accessingdisk devices X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2004 06:28:09 -0000 In message , slick writes: > I wrote an fdisk program which uses several read(2) and write(2). You program needs to realize that disks have sectors. You cannot read a single byte from a disk at a time, you need to read an entire sector and pick the byte out you want. -- 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.