Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 2002 16:40:03 -0800 (PST)
From:      David Schultz <dschultz@uclink.Berkeley.EDU>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/46633: Flase error report in swapon when adding too many disks
Message-ID:  <200212310040.gBV0e3SC098849@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/46633; it has been noted by GNATS.

From: David Schultz <dschultz@uclink.Berkeley.EDU>
To: Willem Jan Withagen <wjw@files.digiware.nl>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/46633: Flase error report in swapon when adding too many disks
Date: Mon, 30 Dec 2002 16:33:10 -0800

 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?
 
 > # swapon /dev/ad6s1b /dev/ad7s1b
 > swapon: /dev/ad7s1b: Invalid argument
 > files# swapinfo
 > Device          1K-blocks     Used    Avail Capacity  Type
 > /dev/ad0s1b        111148     9936   101212     9%    Interleaved
 > /dev/ad4s1b        512000        0   512000     0%    Interleaved
 > /dev/ad5s1b        512000        0   512000     0%    Interleaved
 > /dev/ad6s1b        512000        0   512000     0%    Interleaved
 > Total             1647148     9936  1637212     1%
 > files# swapon /dev/ad7s1b
 > swapon: /dev/ad7s1b: Invalid argument
 > files# sysctl -a | grep swapdev
 > vm.nswapdev: 4

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?200212310040.gBV0e3SC098849>