Date: Wed, 21 Jul 2010 08:48:45 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/geom/class/part geom_part.c src/sbin/geom/core geom.c geom.h src/sbin/geom/misc subr.c subr.h Message-ID: <201007211832.o6LIWTAX099340@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ae 2010-07-21 08:48:45 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sbin/geom/class/part geom_part.c sbin/geom/core geom.c geom.h sbin/geom/misc subr.c subr.h Log: SVN rev 210322 on 2010-07-21 08:48:45Z by ae MFC r209388: Remove G_TYPE_ASCLBA type and replace it with G_TYPE_STRING in gpart. Move code that converts params from humanized numbers to sectors count to subr.c and adjust comment. Add post-processing for "size" and "start offset" params in gpart, now they are properly converted to sectors count with known sector size that can be greater that 512 bytes. Also replace "unsigned long long" type to "off_t" for unify code since it used for medium size in libgeom(3) and DIOCGMEDIASIZE ioctl. PR: bin/146277 MFC r209392: Check for overflow before it occurs. Also add check for negative numbers. Suggested by: ache Approved by: mav (mentor) Revision Changes Path 1.20.2.8 +118 -86 src/sbin/geom/class/part/geom_part.c 1.38.2.2 +1 -90 src/sbin/geom/core/geom.c 1.7.2.2 +0 -1 src/sbin/geom/core/geom.h 1.10.2.4 +90 -0 src/sbin/geom/misc/subr.c 1.9.2.2 +1 -0 src/sbin/geom/misc/subr.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007211832.o6LIWTAX099340>