Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2001 21:12:45 -0500
From:      The Anarcat <anarcat@anarcat.dyndns.org>
To:        Jordan Hubbard <jkh@winston.freebsd.org>
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>
In-Reply-To: <33799.1009073220@winston.freebsd.org>
References:  <20011223005449.GE530@shall.anarcat.dyndns.org> <33799.1009073220@winston.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011223021244.GG530>