svn commit: r238519 - user/ae/bootcode/sys/boot/common

Andrey V. Elsukov ae at FreeBSD.org
Mon Jul 16 08:13:31 UTC 2012


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);


More information about the svn-src-user mailing list