Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jul 2012 08:13:30 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r238519 - user/ae/bootcode/sys/boot/common
Message-ID:  <201207160813.q6G8DUMh018470@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Mon Jul 16 08:13:30 2012
New Revision: 238519
URL: http://svn.freebsd.org/changeset/base/238519

Log:
  Remove DISK_SECSIZE macro, since it is no longer needed. Also remove
  assumptions about 512-bytes sectorsize from the comments, we use
  sectorsize obtained from the disk driver.

Modified:
  user/ae/bootcode/sys/boot/common/disk.h

Modified: user/ae/bootcode/sys/boot/common/disk.h
==============================================================================
--- user/ae/bootcode/sys/boot/common/disk.h	Mon Jul 16 08:06:13 2012	(r238518)
+++ user/ae/bootcode/sys/boot/common/disk.h	Mon Jul 16 08:13:30 2012	(r238519)
@@ -27,8 +27,7 @@
  */
 
 /*
- * Device descriptor for partitioned disks. We assume that all disk addresses
- * are 512 byte block offsets from the start of the disk. To use, set the
+ * Device descriptor for partitioned disks. To use, set the
  * d_slice and d_partition variables as follows:
  *
  * Whole disk access:
@@ -74,8 +73,6 @@
  * the device's strategy method.
  */
 
-#define DISK_SECSIZE	512
-
 struct disk_devdesc
 {
 	struct devsw	*d_dev;
@@ -95,8 +92,7 @@ extern int disk_open(struct disk_devdesc
 extern int disk_close(struct disk_devdesc *dev);
 
 /*
- * Print information about slices on a disk.  For the size calculations we
- * assume a 512 byte sector.
+ * Print information about slices on a disk.
  */
 extern void disk_print(struct disk_devdesc *dev, char *prefix, int verbose);
 extern char* disk_fmtdev(struct disk_devdesc *dev);



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