From: Ming Zhang <mingz@ele.uri.edu>
To: linux-scsi <linux-scsi@vger.kernel.org>
Cc: Damian Pietras <daper@daper.net>
Subject: read only scsi disk
Date: Thu, 09 Feb 2006 12:04:07 -0500 [thread overview]
Message-ID: <1139504647.9367.57.camel@localhost.localdomain> (raw)
Hi folks
Could anybody shed a light on this?
We are adding the support for an OSS iscsi target to support export an
iscsi disk as readonly. We set correct read only bit in sense dbd. But
we found that only when we set the removable bit, the linux will
actually check the ro bit. more detail information can be found from
http://sourceforge.net/mailarchive/forum.php?thread_id=9682261&forum_id=40837
from sd.c, it looks like removable is judged first.
if (sdp->removable)
sd_read_write_protect_flag(sdkp, disk->disk_name,
buffer);
so is there special reason that we should judge removable before we see
if write protect?
thanks!
Ming
next reply other threads:[~2006-02-09 17:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-09 17:04 Ming Zhang [this message]
2006-02-09 19:02 ` read only scsi disk Matthew Wilcox
2006-02-09 19:19 ` Ming Zhang
2006-02-09 19:54 ` Stefan Richter
2006-02-09 20:01 ` Ming Zhang
2006-02-10 10:35 ` Christoph Hellwig
2006-02-09 19:36 ` Stefan Richter
2006-02-09 19:41 ` Ming Zhang
2006-02-09 20:57 ` Stefan Richter
2006-02-09 21:11 ` Ming Zhang
-- strict thread matches above, loose matches on Subject: below --
2006-02-09 19:32 berthiaume_wayne
2006-02-09 19:38 ` Ming Zhang
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=1139504647.9367.57.camel@localhost.localdomain \
--to=mingz@ele.uri.edu \
--cc=daper@daper.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox