Re: [PATCH] scsi: /proc/scsi/scsi patch for large number of devices

2005-08-23 Thread Patrick Mansfield
On Tue, Aug 23, 2005 at 06:42:06PM +0100, Christoph Hellwig wrote: > We had this before, and the answer is: don't use /proc/scsi if you have > lots of device. Don't even enable the config option. We still don't have sysfs scsi devinfo support, we need to represent it as a modifiable list or such

Re: [PATCH] scsi: /proc/scsi/scsi patch for large number of devices

2005-08-23 Thread Christoph Hellwig
On Tue, Aug 23, 2005 at 09:40:40AM -0700, Mark Haverkamp wrote: > > I'm not sure if people care about /proc/scsi, but here is a patch so you > can cat /proc/scsi/scsi when you have a large number of scsi devices. I > have over 4000 devices configured and when I would cat /proc/scsi/scsi I > would

[PATCH] scsi: /proc/scsi/scsi patch for large number of devices

2005-08-23 Thread Mark Haverkamp
I'm not sure if people care about /proc/scsi, but here is a patch so you can cat /proc/scsi/scsi when you have a large number of scsi devices. I have over 4000 devices configured and when I would cat /proc/scsi/scsi I would see a memory allocation error. I instead used the seq_file iterator to d