From owner-freebsd-bugs Sat Jan 4 6:16:13 2003 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A206537B401 for ; Sat, 4 Jan 2003 06:16:12 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D5CA43E4A for ; Sat, 4 Jan 2003 06:16:12 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h04EGB2B000645; Sat, 4 Jan 2003 06:16:11 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h04EGBVE000644; Sat, 4 Jan 2003 06:16:11 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Sat, 4 Jan 2003 06:16:11 -0800 From: David Schultz To: Andy Farkas Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/46633: Flase error report in swapon when adding too many disks Message-ID: <20030104141611.GA378@HAL9000.homeunix.com> Mail-Followup-To: Andy Farkas , freebsd-bugs@FreeBSD.ORG References: <20030103225334.GC12586@HAL9000.homeunix.com> <20030104105859.U47310-100000@hewey.af.speednet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030104105859.U47310-100000@hewey.af.speednet.com.au> Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thus spake Andy Farkas : > > > +.Sh DIAGNOSTICS > > +These utilities may fail for the reasons described in > > +.Xr swapon 2 . > > Much better. (but shouldn't it say "This utility..."?) No. For better or for worse, I piggybacked swapoff(8) on the swapon(8) manpage, and someone stuck swapctl(8) on top of that. > It is still true that there is no mention in *any* man page about the > number of swap devices in 4.7-release/stable though - one must read LINT. > > man 2 swapon says: > > [EINVAL] The device configured by special was not configured > into the system as a swap device. In -CURRENT, the following was added along with the swapoff(2) code: +Additionally, +.Fn swapon +can fail for the following reasons: +.Bl -tag -width Er +.It Bq Er EINVAL +The system has reached the boot-time limit on the number of +swap devices, The doc update will probably show up in -STABLE if/when Matt backports swapoff(2). The work should be straightforward, but it's best not to complicate it by making minor tweaks now that will show up as merge conflicts later. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message