public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Rescan SCSI Bus without /proc/scsi?
@ 2005-10-31 11:03 Nico Schottelius
  2005-10-31 11:08 ` Nico Schottelius
  2005-10-31 11:13 ` Andreas Schwab
  0 siblings, 2 replies; 6+ messages in thread
From: Nico Schottelius @ 2005-10-31 11:03 UTC (permalink / raw)
  To: LKML

[-- Attachment #1: Type: text/plain, Size: 401 bytes --]

Hello!

As noticed in 2.6 kernels, on should not use /proc/scsi anymore.

This breaks the popular rescan-scsi-bus.sh from Kurt Garloff.
Is there a possibility to do that through /sys somehow or do I have
to reanable /proc/scsi?

Greetings,

Nico

-- 
Latest project: cconfig (http://nico.schotteli.us/papers/linux/cconfig/)
Open Source nutures open minds and free, creative developers.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rescan SCSI Bus without /proc/scsi?
  2005-10-31 11:03 Rescan SCSI Bus without /proc/scsi? Nico Schottelius
@ 2005-10-31 11:08 ` Nico Schottelius
  2005-10-31 11:13 ` Andreas Schwab
  1 sibling, 0 replies; 6+ messages in thread
From: Nico Schottelius @ 2005-10-31 11:08 UTC (permalink / raw)
  To: LKML

[-- Attachment #1: Type: text/plain, Size: 851 bytes --]

Googling better before makes sense:

On
http://bash.cyberciti.biz/diskadmin/rescan-scsi-bus.sh.html
is a script using /sys. Though it does not work on linux-2.6.13 here,
I'll search what's broken.

Nico

Nico Schottelius [Mon, Oct 31, 2005 at 12:03:44PM +0100]:
> Hello!
> 
> As noticed in 2.6 kernels, on should not use /proc/scsi anymore.
> 
> This breaks the popular rescan-scsi-bus.sh from Kurt Garloff.
> Is there a possibility to do that through /sys somehow or do I have
> to reanable /proc/scsi?
> 
> Greetings,
> 
> Nico
> 
> -- 
> Latest project: cconfig (http://nico.schotteli.us/papers/linux/cconfig/)
> Open Source nutures open minds and free, creative developers.



-- 
Latest project: cconfig (http://nico.schotteli.us/papers/linux/cconfig/)
Open Source nutures open minds and free, creative developers.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rescan SCSI Bus without /proc/scsi?
  2005-10-31 11:03 Rescan SCSI Bus without /proc/scsi? Nico Schottelius
  2005-10-31 11:08 ` Nico Schottelius
@ 2005-10-31 11:13 ` Andreas Schwab
  2006-01-31 13:51   ` Kurt Garloff
  1 sibling, 1 reply; 6+ messages in thread
From: Andreas Schwab @ 2005-10-31 11:13 UTC (permalink / raw)
  To: Nico Schottelius; +Cc: LKML

Nico Schottelius <nico-kernel@schottelius.org> writes:

> This breaks the popular rescan-scsi-bus.sh from Kurt Garloff.
> Is there a possibility to do that through /sys somehow or do I have
> to reanable /proc/scsi?

Your version of rescan-scsi-bus.sh is quite old.  Current versions of
rescan-scsi-bus.sh already use /sys when available.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rescan SCSI Bus without /proc/scsi?
  2005-10-31 11:13 ` Andreas Schwab
@ 2006-01-31 13:51   ` Kurt Garloff
  2006-01-31 14:44     ` Alistair John Strachan
  0 siblings, 1 reply; 6+ messages in thread
From: Kurt Garloff @ 2006-01-31 13:51 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Nico Schottelius, LKML


[-- Attachment #1.1: Type: text/plain, Size: 481 bytes --]

Hi,

On Mon, Oct 31, 2005 at 12:13:54PM +0100, Andreas Schwab wrote:
> Nico Schottelius <nico-kernel@schottelius.org> writes:
> 
> > This breaks the popular rescan-scsi-bus.sh from Kurt Garloff.
> > Is there a possibility to do that through /sys somehow or do I have
> > to reanable /proc/scsi?
> 
> Your version of rescan-scsi-bus.sh is quite old.  Current versions of
> rescan-scsi-bus.sh already use /sys when available.

Attached for reference.
-- 
Kurt Garloff

[-- Attachment #1.2: rescan-scsi-bus.sh --]
[-- Type: application/x-sh, Size: 8900 bytes --]

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rescan SCSI Bus without /proc/scsi?
  2006-01-31 13:51   ` Kurt Garloff
@ 2006-01-31 14:44     ` Alistair John Strachan
  2006-01-31 16:22       ` Kurt Garloff
  0 siblings, 1 reply; 6+ messages in thread
From: Alistair John Strachan @ 2006-01-31 14:44 UTC (permalink / raw)
  To: Kurt Garloff; +Cc: Andreas Schwab, Nico Schottelius, LKML

On Tuesday 31 January 2006 13:51, Kurt Garloff wrote:
> Hi,
>
> On Mon, Oct 31, 2005 at 12:13:54PM +0100, Andreas Schwab wrote:
> > Nico Schottelius <nico-kernel@schottelius.org> writes:
> > > This breaks the popular rescan-scsi-bus.sh from Kurt Garloff.
> > > Is there a possibility to do that through /sys somehow or do I have
> > > to reanable /proc/scsi?
> >
> > Your version of rescan-scsi-bus.sh is quite old.  Current versions of
> > rescan-scsi-bus.sh already use /sys when available.
>
> Attached for reference.

>From the attachment;

if test ! -d /proc/scsi/; then
  echo "Error: SCSI subsystem not active"
  exit 1
fi

:-)

-- 
Cheers,
Alistair.

'No sense being pessimistic, it probably wouldn't work anyway.'
Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rescan SCSI Bus without /proc/scsi?
  2006-01-31 14:44     ` Alistair John Strachan
@ 2006-01-31 16:22       ` Kurt Garloff
  0 siblings, 0 replies; 6+ messages in thread
From: Kurt Garloff @ 2006-01-31 16:22 UTC (permalink / raw)
  To: Alistair John Strachan; +Cc: Andreas Schwab, Nico Schottelius, LKML

[-- Attachment #1: Type: text/plain, Size: 415 bytes --]

Hi,

On Tue, Jan 31, 2006 at 02:44:05PM +0000, Alistair John Strachan wrote:
> On Tuesday 31 January 2006 13:51, Kurt Garloff wrote:
> > Attached for reference.
> 
> From the attachment;
> 
> if test ! -d /proc/scsi/; then
>   echo "Error: SCSI subsystem not active"
>   exit 1
> fi

SOme work remains to be done :-)

Best,
-- 
Kurt Garloff, Head Architect, Director SUSE Labs (act.), Novell Inc.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-01-31 16:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-31 11:03 Rescan SCSI Bus without /proc/scsi? Nico Schottelius
2005-10-31 11:08 ` Nico Schottelius
2005-10-31 11:13 ` Andreas Schwab
2006-01-31 13:51   ` Kurt Garloff
2006-01-31 14:44     ` Alistair John Strachan
2006-01-31 16:22       ` Kurt Garloff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox