Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Nov 2012 17:27:10 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
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
Message-ID:  <201211181727.qAIHRArQ075414@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211181727.qAIHRArQ075414>