Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Dec 2002 07:58:11 +0100
From:      Christian Brueffer <chris@unixpages.org>
To:        Matthew Dillon <dillon@apollo.backplane.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: swapoff code comitted.
Message-ID:  <20021216065811.GA3780@unixpages.org>
In-Reply-To: <200212152247.gBFMlp4d098705@apollo.backplane.com>
References:  <200212151946.gBFJktmo090730@apollo.backplane.com> <20021215223540.GA601@unixpages.org> <200212152247.gBFMlp4d098705@apollo.backplane.com>

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

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




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