From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760601AbXGQBl4 (ORCPT ); Mon, 16 Jul 2007 21:41:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754818AbXGQBlr (ORCPT ); Mon, 16 Jul 2007 21:41:47 -0400 Received: from ug-out-1314.google.com ([66.249.92.173]:64843 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753747AbXGQBlq (ORCPT ); Mon, 16 Jul 2007 21:41:46 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=pFee6FKCZe2/9HjhRiE5BNGIYg/autIfs+o+yzbIcjzmuq5OE+3YCl60IAVU/FiffeslwsngRWT5CquTQXcnqwpjRJXRCSRWjJdKl5tSJuxTiwSh8mcocCelIQnNdRt6VL2iq0LgJsFJp5EfbVsLWVkzX5vS7FRpVcYhiYex0uU= Message-ID: <469C1E2A.8010508@googlemail.com> Date: Tue, 17 Jul 2007 03:40:58 +0200 From: Gabriel C User-Agent: Thunderbird 2.0.0.4 (X11/20070617) MIME-Version: 1.0 To: FUJITA Tomonori CC: linux-kernel@vger.kernel.org, jens.axboe@oracle.com, torvalds@linux-foundation.org, linux-scsi@vger.kernel.org Subject: Re: Someone ( bsg merge ? ) broke {sd,hd}parm on current git References: <469BD9C8.4000808@googlemail.com> <469C10F6.3050008@googlemail.com> <20070717100921W.fujita.tomonori@lab.ntt.co.jp> In-Reply-To: <20070717100921W.fujita.tomonori@lab.ntt.co.jp> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org FUJITA Tomonori wrote: > From: Gabriel C > Subject: Re: Someone ( bsg merge ? ) broke {sd,hd}parm on current git > Date: Tue, 17 Jul 2007 02:44:38 +0200 > > >> Gabriel C wrote: >> >>> Hello, >>> >>> sdparm and hdparm are broken for me on git ( >>> abce891a10559343d8ac9f79b46d78afdba63a40 ) >>> >>> >>> ~$ sudo hdparm /dev/sdc >>> >>> /dev/sdc: >>> BLKROGET failed: Inappropriate ioctl for device >>> BLKRAGET failed: Inappropriate ioctl for device >>> BLKGETSIZE failed: Inappropriate ioctl for device >>> >>> >>> ~$ sudo sdparm --all /dev/sdc >>> unable to access /dev/sdc, ATA disk? >>> >>> >>> >> Well it is bsg , setting BLK_DEV_BSG=n fixed all this errors. >> > > Can you check the major number of your /dev/sdc? I've seen that > /dev/sd* is linked to bsg devices somehow. > > > All my disks are doing this sdc was meant as example. ... $ ls -la /dev/sd{a,b,c} brw-r----- 1 root disk 8, 0 16. Jul 23:11 /dev/sda brw-rw---- 1 root disk 8, 16 16. Jul 23:11 /dev/sdb brw-r----- 1 root disk 8, 32 16. Jul 23:11 /dev/sdc ... sd{a,b} are SCSI disks and sdc is an ATA disk. You can get the used config from there : http://194.231.229.228/2.6.22-gabce891a/config Gabriel