From: Douglas Gilbert <dougg@torque.net>
To: linux-scsi@vger.kernel.org
Subject: [PATCH+RFC] sg: char_devs + seq_file lk2.6.0t6
Date: Tue, 07 Oct 2003 20:35:18 +1000 [thread overview]
Message-ID: <3F8296E6.9060302@torque.net> (raw)
[-- 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 --]
next reply other threads:[~2003-10-07 10:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-07 10:35 Douglas Gilbert [this message]
2003-10-10 14:16 ` [PATCH+RFC] sg: char_devs + seq_file lk2.6.0t6 Douglas Gilbert
2003-11-07 5:57 ` [PATCH+RFC] sg: char_devs + seq_file lk2.6.0t9 Douglas Gilbert
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=3F8296E6.9060302@torque.net \
--to=dougg@torque.net \
--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 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.