From owner-freebsd-doc@FreeBSD.ORG Thu Aug 11 04:38:05 2005 Return-Path: X-Original-To: freebsd-doc@FreeBSD.org Delivered-To: freebsd-doc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0E7416A41F; Thu, 11 Aug 2005 04:38:04 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BC3D43D48; Thu, 11 Aug 2005 04:38:04 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix4-2.free.fr (Postfix) with ESMTP id A514A32330F; Thu, 11 Aug 2005 06:38:03 +0200 (CEST) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id 1D0C3405C; Thu, 11 Aug 2005 06:38:16 +0200 (CEST) Date: Thu, 11 Aug 2005 06:38:15 +0200 From: Jeremie Le Hen To: Kevin Oberman Message-ID: <20050811043815.GT45385@obiwan.tataz.chchile.org> References: <42F749C5.3010308@rfc2549.org> <20050808183610.C55885D07@ptavv.es.net> <20050811043541.GS45385@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ffoCPvUAPMgSXi6H" Content-Disposition: inline In-Reply-To: <20050811043541.GS45385@obiwan.tataz.chchile.org> User-Agent: Mutt/1.5.9i Cc: freebsd-current@FreeBSD.org, freebsd-doc@FreeBSD.org, Arne Schwabe , Jeremie Le Hen Subject: Re: "atacontrol info" isn't working here X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2005 04:38:05 -0000 --ffoCPvUAPMgSXi6H Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, [ Cc'ing -doc@, so I put a little history from the thread in this mail ] [ I forgot the Cc: field and the attached patch :-} ] > > > > >I can use "list", "mode" and "cap" commands from atacontrol(8), but I > > > > >can't use "info". > > > > > > > > > >%%% > > > > > jarjarbinks:root# atacontrol list > > > > > ATA channel 0: > > > > > Master: ad0 ATA/ATAPI revision 6 > > > > > Slave: acd0 ATA/ATAPI revision 6 > > > > > ATA channel 1: > > > > > Master: no device present > > > > > Slave: no device present > > > > > jarjarbinks:root# atacontrol info 0 > > > > > atacontrol: Invalid channel 0 > > > > > jarjarbinks:root# atacontrol info 1 > > > > > atacontrol: Invalid channel 1 > > > > >%%% > > > > > > > > > > > >for me atacontrol info ata0 works :) > > > > > >Thanks for your very quick answer. I will send a patch to make the > > >manual page more explicit for dumb peoples like me. > > > > > Well it took me ten minutes too. Because that one is not obvious at all. > > But I needed my cdrom (hotswap ide) and did not want to reboot. > > I sent in a patch to the man page when this change was committed by sos@, > but the man page has never been updated. I made the mistake of just > posting and copying sos@. I should have put it in a PR. Kevin, no news since then. I made a patch for the manpage which is actually clearly wrong : %%% The channel argument is the number of the ATA channel on which to operate. %%% The ``channel'' argument is the name of the ata(4) device and not only its number. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org > --ffoCPvUAPMgSXi6H Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="atacontrol.8_channel.diff" Index: atacontrol.8 =================================================================== RCS file: /home/ncvs/src/sbin/atacontrol/atacontrol.8,v retrieving revision 1.26 diff -u -p -u -r1.26 atacontrol.8 --- atacontrol.8 16 May 2005 15:09:13 -0000 1.26 +++ atacontrol.8 11 Aug 2005 04:38:00 -0000 @@ -88,7 +88,7 @@ exercise caution when using this command .Pp The .Ar channel -argument is the number of the ATA channel on which to operate. +argument is the ATA channel device on which to operate. The following commands are supported: .Bl -tag -width "rebuild" .It Ic attach @@ -197,6 +197,11 @@ Show info about the attached devices on Show info about all attached devices on all active controllers. .El .Sh EXAMPLES +To see informations on devices attached on a channel, +use the command line : +.Pp +.Dl "atacontrol info ata0" +.Pp To see the devices' current access modes, use the command line: .Pp .Dl "atacontrol mode ad0" --ffoCPvUAPMgSXi6H--