From owner-freebsd-emulation@FreeBSD.ORG Fri Aug 22 10:50:20 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C82D51065673 for ; Fri, 22 Aug 2008 10:50:20 +0000 (UTC) (envelope-from andr.pl@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id CD18C8FC15 for ; Fri, 22 Aug 2008 10:50:19 +0000 (UTC) (envelope-from andr.pl@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so517958fgb.35 for ; Fri, 22 Aug 2008 03:50:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=0hbmKKAu7Qobfabrxh/w/QEQQ8FiWzY9ROtctGnOjw4=; b=pu5wfQxpr3ZLrciY09VA9ABEPKFFofOHUOevBeGnGaYE0gjG7vfFgt2GYlpfd64C9E w2AvWYsi0jRkv0fMStlx6TTiSGLoGaL+yn5wwZmdKgoNTbUw27WZQwYwYK1gJgBDtDAp VsfZtRZOxDoP355m24Q7IxdE3rRTrIqEujQHs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=quTtjRvzxa5vdltL9KCc4nbzfpfXKqrToEaxopMCjFpX6nZPMSfqkxxEVLMAIoMoVd RHaa0+IA3BK+Psu/+BHt8HPdwhRRppGjVGxhcO9iaBytzMzrctWN3Gpo7onpWh+POw1V lzF5uMGixfcu2QWd5ZGmcr/+WF1K1FxVGKV+Y= Received: by 10.180.214.13 with SMTP id m13mr498596bkg.75.1219402216702; Fri, 22 Aug 2008 03:50:16 -0700 (PDT) Received: from localhost ( [87.250.250.189]) by mx.google.com with ESMTPS id 12sm1012070fks.9.2008.08.22.03.50.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 22 Aug 2008 03:50:15 -0700 (PDT) Date: Fri, 22 Aug 2008 14:50:13 +0400 From: Andrey Ignatov To: freebsd-emulation@freebsd.org Message-ID: <20080822105011.GA1165@rdna.yandex.ru> Mail-Followup-To: freebsd-emulation@freebsd.org References: <20080820081414.GA68778@rdna.yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20080820081414.GA68778@rdna.yandex.ru> User-Agent: mutt-ng/devel-r804 (FreeBSD) Subject: Re: linux-megacli and linsysfs X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2008 10:50:20 -0000 Hi; Workaround is found. The linsysfs create directories /compat/linux/sys/class/scsi_host/host* for each device of class PCIC_STORAGE by default. I has changed this behaviour and resolved my problem by this patch: --8<-------------------------------------------------------------------- --- src/sys/compat/linsysfs/linsysfs.c.orig 2007-03-12 15:16:52.000000000 +0300 +++ src/sys/compat/linsysfs/linsysfs.c 2008-08-21 13:59:06.000000000 +0400 @@ -177,7 +177,7 @@ dir = pfs_create_dir(dir, device, NULL, NULL, NULL, 0); - if (dinfo->cfg.baseclass == PCIC_STORAGE) { + if (dinfo->cfg.baseclass == PCIC_STORAGE && dinfo->cfg.subclass == PCIS_STORAGE_RAID) { /* DJA only make this if needed */ sprintf(host, "host%d", host_number++); strcat(new_path, "/"); -->8-------------------------------------------------------------------- With this patch linsysfs created directories /compat/linux/sys/class/scsi_host/host* for RAID controllers only and not created for SCSI controllers like mpt. The RAID controller mfi0 detected so as /compat/linux/sys/class/scsi_host/host0 in linsysfs and linux-megacli works correctly. The topic is closed. Thanks. P.S. FreeBSD 7.0-STABLE amd64 linux-megacli-1.01.40_1 PERC 5/E, PERC 6/E Dell PowerVault MD1000 -- Andrey Ignatov