public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <jbottomley@parallels.com>
To: "hare@suse.de" <hare@suse.de>
Cc: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	"hch@infradead.org" <hch@infradead.org>,
	"jlinton@tributary.com" <jlinton@tributary.com>,
	"dgilbert@interlog.com" <dgilbert@interlog.com>,
	"kay@vrfy.org" <kay@vrfy.org>,
	"kai.makisara@kolumbus.fi" <kai.makisara@kolumbus.fi>
Subject: Re: [PATCH 2/3] Add EVPD page 0x83 to sysfs
Date: Fri, 7 Mar 2014 11:01:39 +0000	[thread overview]
Message-ID: <1394190098.14365.7.camel@dabdike> (raw)
In-Reply-To: <5319A494.6020308@suse.de>

On Fri, 2014-03-07 at 11:51 +0100, Hannes Reinecke wrote:
> On 03/07/2014 11:39 AM, James Bottomley wrote:
> > On Thu, 2014-03-06 at 10:01 +0100, Hannes Reinecke wrote:
> >> So the only 'proper' solution would be to add a bitmap of supported
> >> pages; however, this would be 256 bits = 32 bytes of additional
> >> space required for struct sdev.
> >> Which I'm a bit reluctant do to, as it'll be a sparse array in most
> >> cases, adding to quite some wasted space.
> > 
> > Why per sdev?  Isn't it per target?  The supported EVPD page list
> > shouldn't really vary for luns of the same target unless something very
> > strange is happening in the array.
> > 
> Spec says it's per LUN:

Specs say a lot of "interesting" things.  The question is what's common
practise in the field.

> 7.8.16 Supported VPD Pages VPD page
> The Supported VDP Pages VPD page contains a list of the VPD page
> codes supported by the logical unit (see
> table 637).
> 
> so we shouldn't really make any assumptions about what might be
> sensible or strange.

The cardreader case is the one I think causes problems for this.  Going
completely the opposite direction, why do we need to cache this at
all? ... it's fairly simple to request each time and it avoids worrying
about the data changing because of a change in the array.

James


  reply	other threads:[~2014-03-07 11:01 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-13 10:07 [PATCHv7 0/3] Display EVPD pages in sysfs Hannes Reinecke
2014-02-13 10:07 ` [PATCH 1/3] scsi_sysfs: Implement 'is_visible' callback Hannes Reinecke
2014-02-13 10:07 ` [PATCH 2/3] Add EVPD page 0x83 to sysfs Hannes Reinecke
2014-02-28 17:01   ` Christoph Hellwig
2014-03-05  7:38     ` Hannes Reinecke
2014-03-05 19:42       ` Christoph Hellwig
2014-03-06  9:01         ` Hannes Reinecke
2014-03-07 10:11           ` Christoph Hellwig
2014-03-07 10:35             ` Hannes Reinecke
2014-03-07 10:44               ` Christoph Hellwig
2014-03-07 10:39           ` James Bottomley
2014-03-07 10:51             ` Hannes Reinecke
2014-03-07 11:01               ` James Bottomley [this message]
2014-03-07 11:18                 ` Douglas Gilbert
2014-03-07 13:39                 ` Hannes Reinecke
2014-03-07 10:40           ` James Bottomley
2014-03-07 10:43             ` Christoph Hellwig
2014-03-07 10:57               ` James Bottomley
2014-02-13 10:07 ` [PATCH 3/3] Add EVPD page 0x80 " Hannes Reinecke
  -- strict thread matches above, loose matches on Subject: below --
2014-02-13 10:27 [PATCHv7 0/3][Resend] Display EVPD pages in sysfs Hannes Reinecke
2014-02-13 10:28 ` [PATCH 2/3] Add EVPD page 0x83 to sysfs Hannes Reinecke
2014-03-02  8:34   ` Bart Van Assche
2014-03-05  7:56     ` Hannes Reinecke
2014-03-02  8:36   ` Bart Van Assche
2014-03-05  7:56     ` Hannes Reinecke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1394190098.14365.7.camel@dabdike \
    --to=jbottomley@parallels.com \
    --cc=dgilbert@interlog.com \
    --cc=hare@suse.de \
    --cc=hch@infradead.org \
    --cc=jlinton@tributary.com \
    --cc=kai.makisara@kolumbus.fi \
    --cc=kay@vrfy.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox