svn commit: r263829 - user/marcel/mkimg
Marcel Moolenaar
marcel at FreeBSD.org
Thu Mar 27 20:10:27 UTC 2014
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);
More information about the svn-src-user
mailing list