Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755098AbbHNM1r (ORCPT ); Fri, 14 Aug 2015 08:27:47 -0400 Received: from mail-qk0-f173.google.com ([209.85.220.173]:34987 "EHLO mail-qk0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752624AbbHNM1q (ORCPT ); Fri, 14 Aug 2015 08:27:46 -0400 Subject: Re: [PATCH] scsi: Export SCSI Inquiry data to sysfs To: Hannes Reinecke , Johannes Thumshirn , "James E.J. Bottomley" References: <1439466608-31577-1-git-send-email-jthumshirn@suse.de> <55CD8B64.1080400@suse.de> Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org From: James Smart Message-ID: <55CDDEBB.1040402@avagotech.com> Date: Fri, 14 Aug 2015 08:27:39 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55CD8B64.1080400@suse.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 805 Lines: 21 On 8/14/2015 2:32 AM, Hannes Reinecke wrote: > On 08/13/2015 01:50 PM, Johannes Thumshirn wrote: >> Export the RAW SCSI Inquiry to sysfs as binfile. This way the data can be >> used by userlang without the need to have and ioctl or use the sg_inq tool. >> > userland! > Just be careful. There are conditions where this could be stale data.... LUN reconfig on an array that hasn't been rescanned by the mid layer yet is such a case. Any reason you didn't have the sysfs call initiate a lun scan or send an inquiry so it's always valid data ? -- james s -- 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/