Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Mar 2014 20:10:27 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r263829 - user/marcel/mkimg
Message-ID:  <201403272010.s2RKAR5F056434@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Thu Mar 27 20:10:26 2014
New Revision: 263829
URL: http://svnweb.freebsd.org/changeset/base/263829

Log:
  Add scheme_max_secsz() for returning the maximum sector size supported
  by the partitioning scheme.

Modified:
  user/marcel/mkimg/scheme.c
  user/marcel/mkimg/scheme.h

Modified: user/marcel/mkimg/scheme.c
==============================================================================
--- user/marcel/mkimg/scheme.c	Thu Mar 27 19:59:33 2014	(r263828)
+++ user/marcel/mkimg/scheme.c	Thu Mar 27 20:10:26 2014	(r263829)
@@ -164,6 +164,13 @@ scheme_max_parts(void)
 	return (scheme->nparts);
 }
 
+u_int
+scheme_max_secsz(void)
+{
+
+	return (scheme->maxsecsz);
+}
+
 lba_t
 scheme_first_block(void)
 {

Modified: user/marcel/mkimg/scheme.h
==============================================================================
--- user/marcel/mkimg/scheme.h	Thu Mar 27 19:59:33 2014	(r263828)
+++ user/marcel/mkimg/scheme.h	Thu Mar 27 20:10:26 2014	(r263829)
@@ -83,6 +83,7 @@ struct mkimg_scheme *scheme_selected(voi
 int scheme_bootcode(int fd);
 int scheme_check_part(struct part *);
 u_int scheme_max_parts(void);
+u_int scheme_max_secsz(void);
 lba_t scheme_first_block(void);
 lba_t scheme_next_block(lba_t, lba_t);
 int scheme_write(int, lba_t);



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