From owner-freebsd-current Sun Dec 15 22:58:24 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0451437B401 for ; Sun, 15 Dec 2002 22:58:22 -0800 (PST) Received: from milan.hitnet.rwth-aachen.de (milan.hitnet.RWTH-Aachen.DE [137.226.181.144]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9DB343ED8 for ; Sun, 15 Dec 2002 22:58:13 -0800 (PST) (envelope-from chris@unixpages.org) Received: from gondor.middleearth (gondor.middleearth [192.168.1.42]) by milan.hitnet.rwth-aachen.de (Postfix) with ESMTP id 9D9EDA91E; Mon, 16 Dec 2002 07:58:12 +0100 (CET) Received: by gondor.middleearth (Postfix, from userid 1001) id C6D85154E4; Mon, 16 Dec 2002 07:58:11 +0100 (CET) Date: Mon, 16 Dec 2002 07:58:11 +0100 From: Christian Brueffer To: Matthew Dillon Cc: current@FreeBSD.ORG Subject: Re: swapoff code comitted. Message-ID: <20021216065811.GA3780@unixpages.org> References: <200212151946.gBFJktmo090730@apollo.backplane.com> <20021215223540.GA601@unixpages.org> <200212152247.gBFMlp4d098705@apollo.backplane.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline In-Reply-To: <200212152247.gBFMlp4d098705@apollo.backplane.com> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-CURRENT X-PGP-Key: http://www.unixpages.org/cbrueffer.asc Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 15, 2002 at 02:47:51PM -0800, Matthew Dillon wrote: > : > :How about renaming swapon(8) into swapctl(8) after this function enhance= men=3D > :t? > :This name reflects it's purpose much better and would be consistent with= the > :other BSDs. > : > :- Christian >=20 > I think that's an excellent idea. We would have to do some > rewriting to add the expected options but it would not be too > difficult to do. Mainly just grunt work. e.g. the NetBSD swapctl > command is this: >=20 > swapctl -A [-p priority] [-t blk|noblk] > -D dumpdev > -U [-t blk|noblk] > -a [-p priority] path > -c -p priority path > -d path > -l | -s [-k] > -z > swapon -a | path >=20 > And the OpenBSD swapctl command is this: >=20 > swapctl -A [-p priority] [-t blk|noblk] > swapctl -a [-p priority] path > swapctl -c -p priority path > swapctl -d path > swapctl -l | -s [-k] > swapon -a | path >=20 > We would simply ignore priority since we don't support it, nor would = we > need a -t option since we do not have buffered block devices any more > or a -c option since, again, we do not have priorities. >=20 > I would keep 'swapoff' in anycase. It's an obvious command and like > swapon could simply wind up being a hardlink to swapctl. >=20 > I am not volunteering to do this, at least not right now. I have too > big a stack of things that still need to be committed, but if someone > else would like to tackle this I think it would be a nice little proj= ect > for a developer with some free time to waste and I would be happy to > review and test the work. >=20 > -Matt >=20 >=20 I'll look into that when some of my current work is done. Maybe it's worth an entry in PHK's JKH TODO list for now. - Christian --=20 http://www.unixpages.org chris@unixpages.org GPG Pub-Key : www.unixpages.org/cbrueffer.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D GPG Key ID : 0xA0ED982D --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE9/XmDbHYXjKDtmC0RAs4yAKDbXBy8rJHg9rBgHSc0ETaLVM2pOQCfY/dp pNz6aPkeSf9ZG4PmxtVo2fw= =rTsW -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message