From owner-freebsd-arch Sat Dec 22 18:12:59 2001 Delivered-To: freebsd-arch@freebsd.org Received: from tomts14-srv.bellnexxia.net (tomts14.bellnexxia.net [209.226.175.35]) by hub.freebsd.org (Postfix) with ESMTP id 531E937B417; Sat, 22 Dec 2001 18:12:56 -0800 (PST) Received: from khan.anarcat.dyndns.org ([65.94.189.35]) by tomts14-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011223021255.VHNU6216.tomts14-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Sat, 22 Dec 2001 21:12:55 -0500 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id B80BA1B1D; Sat, 22 Dec 2001 21:12:51 -0500 (EST) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 6138C20ACB; Sat, 22 Dec 2001 21:12:45 -0500 (EST) Date: Sat, 22 Dec 2001 21:12:45 -0500 From: The Anarcat To: Jordan Hubbard Cc: arch@FreeBSD.ORG, jkh@FreeBSD.ORG Subject: Re: sysctl kern.disks shouldn't have to sort its output Message-ID: <20011223021244.GG530@shall.anarcat.dyndns.org> References: <20011223005449.GE530@shall.anarcat.dyndns.org> <33799.1009073220@winston.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dMyqICaxQaaUjrCL" Content-Disposition: inline In-Reply-To: <33799.1009073220@winston.freebsd.org> User-Agent: Mutt/1.3.24i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --dMyqICaxQaaUjrCL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat Dec 22, 2001 at 06:07:00PM -0800, Jordan Hubbard wrote: > > Yes, of course. But I wonder how best it would be implemented... By > > controlling how entries are added to the list, or by controlling how he > > prints those entries? >=20 > It's only useful if you control how the entries are added to the Disks ** > structure. hmm.. yes, of course. my mind is going blur. > > Because it is a list, sorting it is not very efficient. At the output >=20 > It's small. You can bubble sort it for all we care. :) yeah, I guess. So one could just implement sorting stuff in disk_create... Insert the item in a proper place in the list instead of just putting it on top... yes-yes... I'll take a look at this again. a. --dMyqICaxQaaUjrCL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjwlPZcACgkQttcWHAnWiGfQpQCeIun/8EhWedszBsa4OiWRz/n5 fwwAnRmC367EDU8dsC3CgblXssm5A2lC =F0tz -----END PGP SIGNATURE----- --dMyqICaxQaaUjrCL-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message