public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: dougg@torque.net,
	James Bottomley <James.Bottomley@hansenpartnership.com>,
	Greg KH <greg@kroah.com>,
	kernel list <linux-kernel@vger.kernel.org>,
	Linux-Scsi <linux-scsi@vger.kernel.org>
Subject: Re: lsscsi is broken
Date: Sat, 10 May 2008 15:19:04 -0600	[thread overview]
Message-ID: <20080510211904.GN19219@parisc-linux.org> (raw)
In-Reply-To: <86802c440805101306w64b5c72dn4dbfea74a6557c2f@mail.gmail.com>

On Sat, May 10, 2008 at 01:06:36PM -0700, Yinghai Lu wrote:
> On Sat, May 10, 2008 at 11:34 AM, Douglas Gilbert <dougg@torque.net> wrote:
> > Which version of lsscsi?
> > [For example what is the output of 'lsscsi --version'.]
> >
> > If it is not version 0.20 beta could you try it.
> > See: http://sg.torque.net/scsi/lsscsi.html
> 
> it is the one in Opensuse 10.3

OK, can you do:

strace -e trace=file lsscsi

on my system, it looks at:

open("/sys/bus/scsi/devices", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3
open("/sys/bus/scsi/devices/0:0:0:0/type", O_RDONLY) = 3
open("/sys/bus/scsi/devices/0:0:0:0/vendor", O_RDONLY) = 3
open("/sys/bus/scsi/devices/0:0:0:0/model", O_RDONLY) = 3
open("/sys/bus/scsi/devices/0:0:0:0/rev", O_RDONLY) = 3
open("/sys/bus/scsi/devices/0:0:0:0", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3
[0:0:0:0]    disk    Sony     MSC-U03          1.00  -       

Is it trying to access the same files on your system?  How do the
contents of those files differ between a working and a non-working
kernel?

-- 
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."

  reply	other threads:[~2008-05-10 21:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-09 23:38 lsscsi is broken Yinghai Lu
2008-05-10 18:34 ` Douglas Gilbert
2008-05-10 18:45   ` Matthew Wilcox
2008-05-10 20:06   ` Yinghai Lu
2008-05-10 21:19     ` Matthew Wilcox [this message]
2008-05-10 22:22       ` Yinghai Lu
2008-05-10 22:36         ` Matthew Wilcox
2008-05-10 23:01           ` Yinghai Lu

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=20080510211904.GN19219@parisc-linux.org \
    --to=matthew@wil.cx \
    --cc=James.Bottomley@hansenpartnership.com \
    --cc=dougg@torque.net \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=yhlu.kernel@gmail.com \
    /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