All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH+RFC] sg: char_devs + seq_file lk2.6.0t6
@ 2003-10-07 10:35 Douglas Gilbert
  2003-10-10 14:16 ` Douglas Gilbert
  0 siblings, 1 reply; 3+ messages in thread
From: Douglas Gilbert @ 2003-10-07 10:35 UTC (permalink / raw)
  To: linux-scsi

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

Changes to scsi generic (sg) driver [gzipped patch against
lk 2.6.0-test6]:
     - add "struct cdev" [char_devs] objects to increase
       maximum number of sg devices from 256 to 8192
     - use seq_file interface for /proc/scsi/sg/*
       pseudo files

The first change re-introduces sg devices into sysfs.
Each sg device has a directory (currently empty)
with a name of the form: "/sys/cdev/major/sg<n>". When I tried
adding 280 scsi "devices" with scsi_debug all the expected
sg directories appeared (sg0..sg279). However sd registered
the first 256 "disks" (up to /dev/sdiv) and failed thereafter
with error "-16" (is anybody working on extending sd's
disk and partition range?).

Would it be possible to put a symbolic link in the
/sys/cdev/major/sg<n> directory to the corresponding
sysfs scsi device (and vice versa)?

Doug Gilbert

[-- Attachment #2: sg260t6.diff.gz --]
[-- Type: application/x-gzip, Size: 5769 bytes --]

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

end of thread, other threads:[~2003-11-07  9:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-07 10:35 [PATCH+RFC] sg: char_devs + seq_file lk2.6.0t6 Douglas Gilbert
2003-10-10 14:16 ` Douglas Gilbert
2003-11-07  5:57   ` [PATCH+RFC] sg: char_devs + seq_file lk2.6.0t9 Douglas Gilbert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.