Date: Fri, 3 Jan 2003 14:53:34 -0800 From: David Schultz <dschultz@uclink.Berkeley.EDU> To: Andy Farkas <andyf@speednet.com.au> Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/46633: Flase error report in swapon when adding too many disks Message-ID: <20030103225334.GC12586@HAL9000.homeunix.com> In-Reply-To: <20021231110927.X35303-100000@hewey.af.speednet.com.au> References: <200212310040.gBV0e3SC098849@freefall.freebsd.org> <20021231110927.X35303-100000@hewey.af.speednet.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Thus spake Andy Farkas <andyf@speednet.com.au>: > On Mon, 30 Dec 2002, David Schultz wrote: > > > Thus spake Willem Jan Withagen <wjw@files.digiware.nl>: > > > When adding too many disk for swapping the error reported is a 'strange one' > > > Nicer would be to respond something like: > > > All swapdisk slots are occupied. > > > > If swapon(2) returned EBUSY in this case, you'd get the message > > 'Device busy' without having to make a special case out of it. > > Does that sound better? > > The error is not 'device busy', the error is 'out of swapdisk slots'. > > The first time this happened to me, I was stumped as to why it wouldn't > let me do it; the error message was not intuative at all. Man pages were > useless, there is no mention of swap device limits there. How about: Index: swapon.8 =================================================================== RCS file: /home/ncvs/src/sbin/swapon/swapon.8,v retrieving revision 1.22 diff -u -r1.22 swapon.8 --- swapon.8 2002/12/28 23:39:47 1.22 +++ swapon.8 2003/01/03 22:52:18 @@ -131,6 +131,9 @@ The BLOCKSIZE environment variable is used if not specifically overridden. 512 byte blocks are used by default. .El +.Sh DIAGNOSTICS +These utilities may fail for the reasons described in +.Xr swapon 2 . .Sh SEE ALSO .Xr swapon 2 , .Xr fstab 5 , > It is not common knowledge that Freebsd has a limit to the number of swap > devices you can use. And it seems that this knowledge has been dropped > from -current: > > $ grep -i swap /sys/i386/conf/NOTES > $ s!/i386!! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030103225334.GC12586>