From owner-freebsd-arch@FreeBSD.ORG Thu Sep 16 18:42:04 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAA6716A4CE for ; Thu, 16 Sep 2004 18:42:04 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 754F443D2D for ; Thu, 16 Sep 2004 18:42:04 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id E353BACAFB; Thu, 16 Sep 2004 20:42:01 +0200 (CEST) Date: Thu, 16 Sep 2004 20:42:01 +0200 From: Pawel Jakub Dawidek To: freebsd-arch@FreeBSD.org Message-ID: <20040916184201.GD30151@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QTrnGtbQvXh53f+1" Content-Disposition: inline User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 Subject: New libutil function: parse_capacity(3). X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 18:42:04 -0000 --QTrnGtbQvXh53f+1 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello. I implemented parse_capacity() function which can be use to convert a string with a human-readable capacity value to a off_t value. It can be used by utilities like: % truncate -s 8g test # mdconfig -a -t malloc -s 16M Patch can be found here: http://people.freebsd.org/~pjd/patches/parse_capacity.patch Any comments before committing? --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --QTrnGtbQvXh53f+1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBSd55ForvXbEpPzQRArAoAKDQPCnb9bRNDIPFGOgWOsA3Ni8RoQCg6TQr iJUhLyLnIGGuvKnjxU+/75I= =+ATK -----END PGP SIGNATURE----- --QTrnGtbQvXh53f+1--