Date: Fri, 22 Aug 2008 14:50:13 +0400 From: Andrey Ignatov <andr.pl@gmail.com> To: freebsd-emulation@freebsd.org Subject: Re: linux-megacli and linsysfs Message-ID: <20080822105011.GA1165@rdna.yandex.ru> In-Reply-To: <20080820081414.GA68778@rdna.yandex.ru> References: <20080820081414.GA68778@rdna.yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080822105011.GA1165>