From owner-freebsd-hackers Thu Oct 1 06:10:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA14909 for freebsd-hackers-outgoing; Thu, 1 Oct 1998 06:10:41 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from florence.pavilion.net (florence.pavilion.net [194.242.128.25]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA14888; Thu, 1 Oct 1998 06:10:33 -0700 (PDT) (envelope-from joe@florence.pavilion.net) Received: (from joe@localhost) by florence.pavilion.net (8.8.8/8.8.8) id OAA01342; Thu, 1 Oct 1998 14:10:15 +0100 (BST) (envelope-from joe) Message-ID: <19981001141015.G16056@pavilion.net> Date: Thu, 1 Oct 1998 14:10:15 +0100 From: Josef Karthauser To: freebsd-scsi@FreeBSD.ORG Cc: freebsd-hackers@FreeBSD.ORG Subject: re: chio.c (bug?) Mail-Followup-To: freebsd-scsi@Freebsd.org, freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i X-Mailer: Mutt 0.93.2i In-Reply-To: <19980930192132.D11002@pavilion.net>; from Josef Karthauser on Wed, Sep 30, 1998 at 07:21:32PM +0100 X-NCC-RegID: uk.pavilion Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sorry, I was a bit quick off the mark. I believe that the patch below reinstates the functionality documented in the man page: params Report the number of slots, drives, pickers, and portals in the changer, and which picker unit the changer is currently config- ured to use. ----------------Patch below---------------------- --- chio.c Thu Oct 1 14:02:29 1998 +++ /home/joe/chio.c Thu Oct 1 14:04:20 1998 @@ -382,7 +382,6 @@ do_params(char *cname, int argc, char **argv) { struct changer_params data; - int picker; /* No arguments to this command. */ @@ -406,12 +405,6 @@ if (data.cp_nportals) (void) printf(", %d portal%s", data.cp_nportals, (data.cp_nportals > 1) ? "s" : ""); - - - /* Get current picker from changer and display it. */ - if (ioctl(changer_fd, CHIOGPICKER, &picker)) - err(1, "%s: CHIOGPICKER", changer_name); - printf("\n%s: current picker: %d\n", changer_name, picker); return (0); -- Josef Karthauser Technical Manager FreeBSD: The power to serve (http://www.uk.freebsd.org) Pavilion Internet plc. [joe@pavilion.net, joe@uk.freebsd.org, joe@tao.org.uk] ----- End forwarded message ----- -- Josef Karthauser Technical Manager FreeBSD: The power to serve (http://www.uk.freebsd.org) Pavilion Internet plc. [joe@pavilion.net, joe@uk.freebsd.org, joe@tao.org.uk] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message