From owner-svn-src-stable-9@FreeBSD.ORG Sun Nov 18 17:27:11 2012 Return-Path: Delivered-To: svn-src-stable-9@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2B2055B0; Sun, 18 Nov 2012 17:27:11 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 0EE7A8FC18; Sun, 18 Nov 2012 17:27:11 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qAIHRAMo075415; Sun, 18 Nov 2012 17:27:10 GMT (envelope-from ae@svn.freebsd.org) Received: (from ae@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qAIHRArQ075414; Sun, 18 Nov 2012 17:27:10 GMT (envelope-from ae@svn.freebsd.org) Message-Id: <201211181727.qAIHRArQ075414@svn.freebsd.org> From: "Andrey V. Elsukov" Date: Sun, 18 Nov 2012 17:27:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r243244 - stable/9/tools/tools/bootparttest X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Nov 2012 17:27:11 -0000 Author: ae Date: Sun Nov 18 17:27:10 2012 New Revision: 243244 URL: http://svnweb.freebsd.org/changeset/base/243244 Log: MFC r239070: Add simple test program that uses the partition tables handling code. It is useful to test and debug how boot loader handles partition tables metadata. MFC r239087: Add to the debug output the offset from the parent partitioning scheme. Added: stable/9/tools/tools/bootparttest/ - copied from r239070, head/tools/tools/bootparttest/ Modified: stable/9/tools/tools/bootparttest/bootparttest.c Directory Properties: stable/9/tools/tools/ (props changed) Modified: stable/9/tools/tools/bootparttest/bootparttest.c ============================================================================== --- head/tools/tools/bootparttest/bootparttest.c Sun Aug 5 15:40:16 2012 (r239070) +++ stable/9/tools/tools/bootparttest/bootparttest.c Sun Nov 18 17:27:10 2012 (r243244) @@ -54,8 +54,8 @@ diskread(void *arg, void *buf, size_t bl struct disk *dp; dp = (struct disk *)arg; - printf("%s: read %d blocks from the offset %jd\n", dp->name, - blocks, offset); + printf("%s: read %d blocks from the offset %jd [+%jd]\n", dp->name, + blocks, offset, dp->offset); if (offset >= dp->mediasize / dp->sectorsize) return (-1);