From owner-svn-src-head@freebsd.org Fri Apr 14 21:53:01 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 36D7AD3C8C7; Fri, 14 Apr 2017 21:53:01 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pf0-x244.google.com (mail-pf0-x244.google.com [IPv6:2607:f8b0:400e:c00::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EB46CA6C; Fri, 14 Apr 2017 21:53:00 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pf0-x244.google.com with SMTP id c198so16676760pfc.0; Fri, 14 Apr 2017 14:53:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=DouJjrZtawbv5aB7UicdReH5kJHRfbk0BzTXHYzGiOU=; b=I1NX1HCeyBgBTVmDs/fx/cw7KLnfNHxKTk8nmzEee28g2D1IW6Mi37Q86MsO8TwMKM j44LKstXTn3S4GG5dsVohtNOl7odJ/z9YOZ3D1+XjP+VL6w+eieNrGGSI4YWQhrIE6j5 0FGvjS9BLiw46WJ9/mBB8UMxWbpr+0Lbqr0z2e6txz0pbL2AH+d2jqwy3UJS0u4CsZGS Ouko6Z4+5ejFxEQK2G8J1TA9YUb80HUmyxyVMlsRrrWTEtrYa5cA8nQLdpOeOiBOe8u/ B8HfBV4cLMKFS6Qmk1jNi5B3TONCv2TbpMezrVp6gJMaw+H9+kym/ck4dj/gvs5YpG0X klUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=DouJjrZtawbv5aB7UicdReH5kJHRfbk0BzTXHYzGiOU=; b=niHfm/ODD03oHUlMmAl+gxWr6Ysmnn2iZcu1IEFtPmcg34xjXIg0q8qQoJeCbPE8xN f/u0s5m/wZYJD1MjWavp4jBdZMmapD59OR4pY3v87Jrg1g6NBfxCvsKt2bDrzfrjbgX/ dwcoiQkfJg7OhLJLTaHa0uHDCsokVcd9/Kv8hBcql9x9QbU1oBoaSXogexRuCjEsfPD7 BWKL06sRNd5abzqr/ZXgj4Fou5rEAV9p05UXIsvrBrgfuUcJloUQxRh2T5k1xDTb9kk7 WzP3HDViXk+y3fDv4n6V5lt1blfdCGxwiBWtMxcWcXmC6VMAhMpH1U3s/uw4ypcPVPRo f1Ig== X-Gm-Message-State: AN3rC/4narnkNHo+FJxiKLG5Pg7bd0kR6BnmV3VBmPsXCOWWBarK9glr cdKfA05YttwhXOpHrcI= X-Received: by 10.98.130.10 with SMTP id w10mr8784118pfd.12.1492206780327; Fri, 14 Apr 2017 14:53:00 -0700 (PDT) Received: from fuji-wireless.local (c-73-19-52-228.hsd1.wa.comcast.net. [73.19.52.228]) by smtp.gmail.com with ESMTPSA id q70sm4897380pgq.45.2017.04.14.14.52.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Apr 2017 14:52:58 -0700 (PDT) From: "Ngie Cooper (yaneurabeya)" Message-Id: <6B556967-35B0-4F4F-9F1E-C088F8D48C80@gmail.com> Content-Type: multipart/signed; boundary="Apple-Mail=_D8477057-EBD8-4E0F-93BC-4449869DD05B"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: svn commit: r316938 - head/sbin/savecore Date: Fri, 14 Apr 2017 14:52:56 -0700 In-Reply-To: <1940104.87G28XVdqf@ralph.baldwin.cx> Cc: Ngie Cooper , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org To: John Baldwin References: <201704141941.v3EJfmCW003347@repo.freebsd.org> <1940104.87G28XVdqf@ralph.baldwin.cx> X-Mailer: Apple Mail (2.3273) X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2017 21:53:01 -0000 --Apple-Mail=_D8477057-EBD8-4E0F-93BC-4449869DD05B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Apr 14, 2017, at 2:40 PM, John Baldwin wrote: >=20 > On Friday, April 14, 2017 07:41:48 PM Ngie Cooper wrote: >> Author: ngie >> Date: Fri Apr 14 19:41:48 2017 >> New Revision: 316938 >> URL: https://svnweb.freebsd.org/changeset/base/316938 >>=20 >> Log: >> savecore: fix space calculation with respect to `minfree` in = check_space(..) >>=20 >> - Use strtoll(3) instead of atoi(3), because atoi(3) limits the >> representable data to INT_MAX. Check the values received from >> strtoll(3), trimming trailing whitespace off the end to maintain >> POLA. >> - Use `KiB` instead of `kB` when describing free space, total space, >> etc. I am now fully aware of `KiB` being the IEC standard for 1024 >> bytes and `kB` being the IEC standard for 1000 bytes. >=20 > I will just rant lightly that no one actually uses this in the real = world. >=20 > Good lucking finding a "16 GiB" DIMM on crucial.com = or a 4Kin drive. A > kilobyte is a power of 2. The End. >=20 > (Next up we'll have to rename 4k displays to > 4k) https://media0.giphy.com/media/7rj2ZgttvgomY/giphy.gif = :P. -Ngie --Apple-Mail=_D8477057-EBD8-4E0F-93BC-4449869DD05B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJY8US5AAoJEPWDqSZpMIYVCfUP/3wA5+5dTcBrRjYxgWZQ2o1X RRumpB5eNc12qs5dz64H3gpPdFYfaAqop0EGXWX/wJxS/8SpJVV5PEOMy2pBH7ag 8L33dfRJAh7UxeC1MM8ms0q7TsP7cIRXcYr+cAjL+n/R+1u5n8AkIiTJKX64bdBl HSo6CLpRT8UrkHTPXPSGYx014D3hU/YOY1TwuzOm70I1x4uqQl1oxv3hSCSeOlWW OBAaxuIRO8O2+6GYf/cPQZsfX2GDdlLWls/9nv47CRC7JD/AcksYaCVm2X8WA4nj czN1Dwtm60aPjFAltfChgi8m+yedJD36BvfT0WAm1eL1ZW7qYN6ATjS1HaWpuUnk Tcg1O/TMB8StpdamzI5TCXgANS2Xw45/IB9NAEHGrqohztxX6CHfudIrPpHWCOil 3gDt54YlNlPSeAFDu+6dA+/W3CqtIo75DufPVFutVAhmZFIOaS7IFswTqIWzM/d4 KXKle7ViKyT+KnGHuolHMpmA0+acf9HVFN0zQLNYVnCXwk9vWE5knKNymg7YkfJZ 5yJndqZQg+02RcH8rJoJjQ2DhflItAJQvfPI4c1QueOPHHMCCLrb9UkHkRSos8Np B8lgFHoXAxzybVAjweqr1R3nNIiJPH78niD9ZLhftDQHOI/izNvekT0Gb6ytFeYE iIslnKaBhFyHx6wog75J =eVXV -----END PGP SIGNATURE----- --Apple-Mail=_D8477057-EBD8-4E0F-93BC-4449869DD05B--