Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965128AbWHQQpG (ORCPT ); Thu, 17 Aug 2006 12:45:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965134AbWHQQpE (ORCPT ); Thu, 17 Aug 2006 12:45:04 -0400 Received: from mtagate6.de.ibm.com ([195.212.29.155]:55348 "EHLO mtagate6.de.ibm.com") by vger.kernel.org with ESMTP id S965128AbWHQQpA (ORCPT ); Thu, 17 Aug 2006 12:45:00 -0400 In-Reply-To: To: Jan Engelhardt Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, linux-scsi-owner@vger.kernel.org, Matthew Wilcox , Michael Tokarev MIME-Version: 1.0 Subject: Re: Random scsi disk disappearing X-Mailer: Lotus Notes Release 6.5.1IBM February 19, 2004 From: Andreas Herrmann Message-ID: Date: Thu, 17 Aug 2006 18:48:50 +0200 X-MIMETrack: Serialize by Router on D12ML065/12/M/IBM(Release 6.5.5HF607 | June 26, 2006) at 17/08/2006 18:48:50, Serialize complete at 17/08/2006 18:48:50 Content-Type: text/plain; charset="US-ASCII" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1196 Lines: 38 On 17.08.2006 15:41 Jan Engelhardt wrote: > >> It should be the same as > >> echo $((7<<6)) > /sys/module/scsi_mod/parameters/scsi_logging_level > >> (which indeed is 448) at runtime, right? (And yes, CONFIG_SCSI_LOGGING > >> is set to y). > > > >> Heh oh those magic numbers!.. ;) > > ... > Since 7<<6 seems to indicate a flag, it would be best to have some sysfs > variable that you can flip using 0 and 1. It's not a flag. This one sets loglevel 7 for SCSI_LOG_SCAN. So all SCSI_LOG_SCAN messages might show up. The loglevel can also be set using sysctl dev.scsi.logging_level. Anyone interested in a script to conveniently interpret or change the SCSI logging level? Such a script (scsi_logging_level) exists in the s390-tools package (version 1.5.3). If others show interest for this script, maybe a better place can be found than s390-tools (because it is not really s390-specific). Regards, Andreas - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/