From owner-cvs-src@FreeBSD.ORG Thu Nov 1 20:06:13 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63E7B16A421; Thu, 1 Nov 2007 20:06:13 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 3A12113C49D; Thu, 1 Nov 2007 20:06:13 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lA1K6CYL002201; Thu, 1 Nov 2007 20:06:12 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lA1K6COG002200; Thu, 1 Nov 2007 20:06:12 GMT (envelope-from jhb) Message-Id: <200711012006.lA1K6COG002200@repoman.freebsd.org> From: John Baldwin Date: Thu, 1 Nov 2007 20:06:12 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sbin/gpt boot.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Nov 2007 20:06:13 -0000 jhb 2007-11-01 20:06:12 UTC FreeBSD src repository Modified files: sbin/gpt boot.c Log: Fix 'gpt boot' to work on disk devices and not just plain files. Writes to disk devices have to consist of a block of sectors. Thus, when writing gptboot to the boot partition, round the size of the gptboot file up to a sector boundary, pre-zero it, and write out the full buffer to disk. Revision Changes Path 1.2 +10 -5 src/sbin/gpt/boot.c