Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Oct 1998 14:10:15 +0100
From:      Josef Karthauser <joe@pavilion.net>
To:        freebsd-scsi@FreeBSD.ORG
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   re: chio.c (bug?)
Message-ID:  <19981001141015.G16056@pavilion.net>
In-Reply-To: <19980930192132.D11002@pavilion.net>; from Josef Karthauser on Wed, Sep 30, 1998 at 07:21:32PM %2B0100

next in thread | previous in thread | raw e-mail | index | archive | help
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



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