From owner-cvs-all@FreeBSD.ORG Wed Jun 16 10:45:03 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A554916A4CE; Wed, 16 Jun 2004 10:45:03 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8927F43D41; Wed, 16 Jun 2004 10:45:03 +0000 (GMT) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i5GAiQGw085288; Wed, 16 Jun 2004 10:44:26 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5GAiQIY085287; Wed, 16 Jun 2004 10:44:26 GMT (envelope-from pjd) Message-Id: <200406161044.i5GAiQIY085287@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Wed, 16 Jun 2004 10:44:26 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/geom/misc subr.c subr.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2004 10:45:03 -0000 pjd 2004-06-16 10:44:26 UTC FreeBSD src repository Modified files: sbin/geom/misc subr.c subr.h Log: Implement 3 new functions: - g_lcm() - calculates Least Common Multiple of two given values, it is helpful when we need to find sector size for provider which is based on disks with different sector size; - g_get_mediasize() - returns media size of given provider; - g_get_sectorsize() - returns sector size of given provider; Those function aren't used now, but are used by geom_mirror which will be committed soon. Revision Changes Path 1.2 +72 -4 src/sbin/geom/misc/subr.c 1.2 +5 -0 src/sbin/geom/misc/subr.h