06-11-2011
Ending SCSI request in block level driver
hi,
We are currently working on block level driver in linux ubuntu .we are having a storage controller and we are trying to capture and filling the scsi requests to a particular LUN.
We are trying to mask a request for that LUN. We were able to get LUN id of hard drive. Our objective is to restrict all the request for that particular LUN at the block level.
We tried to end the request using blk_end_request/blk_end_request_all when the request is to the LUN id that we are trying to mask ,
but while trying this our server got hanged.
SO Please help us , how to end the request for particular LUN without ending other request for other LUNs.Because all the scsi requests are going thorugh do_cciss_request only.
Thanks in Advance
10 More Discussions You Might Find Interesting
1. Solaris
I've been researching minimizeing Solaris 8 and found that on the web page http://www.sun.com/bigadmin/content/packagelist/s8u7PkgList/p2.html the package SUNWglmr
is listed as "rasctrl environment monitoring driver for i2c, (Root) (32-bit)" while in the document "Solaris 8 minimize-updt1.pdf"... (1 Reply)
Discussion started by: roygoodwin
1 Replies
2. SCO
I am facing a problem to install sco 5.0.6 in Dell Power Edge SC1420 which raid controller is ultra 320 scsi raid controller .
how/from where to download the ultra 320 scsi raid controller driver for sco 5.0.6.
Plz help with any idea
karzon (1 Reply)
Discussion started by: karzon
1 Replies
3. Solaris
what are the major Difference Between run level & init level (2 Replies)
Discussion started by: rajaramrnb
2 Replies
4. Linux
Hi All,
I am writing a block driver for a 2GB SD card where i get the total amount of data per request as follows:
struct request *req;
uint card_addr,total_bytes;
struct request_queue *rq = BlkDev->queue;
req = elv_next_request(rq);
..
..
card_addr = req->sector*512;... (1 Reply)
Discussion started by: amio
1 Replies
5. Ubuntu
How to end the request(I/O) in block driver for particular disk drive without affecting other request intended for some other drives. (1 Reply)
Discussion started by: coeteam
1 Replies
6. UNIX for Advanced & Expert Users
Can anybody get me some sample driver code of linux block drivers to send request to scsi disks?
Basically I need a sample code of linux scsi block driver.
I tried googling for sample code but did not find it. (1 Reply)
Discussion started by: rupeshkp728
1 Replies
7. Hardware
In general terms what are the differences platform driver,codec driver and Machine driver? (1 Reply)
Discussion started by: rupeshkp728
1 Replies
8. Red Hat
We have a RHEL 5.8 server at the production level and we have a Java application on this server. I know of the SSL certificate generation at the OS (RHEL) level but it is implemented on the Java application by our development team using the Java keytool. My doubt is that is the SSL generation can... (3 Replies)
Discussion started by: RHCE
3 Replies
9. AIX
i'm trying to burn an DVD ISO into a VIOS virtual optical drive
when i try a scanbus i have a failure message :
Can u help me please guys
---------- Post updated at 03:38 PM ---------- Previous update was at 12:20 PM ----------
I can't burn in ISO format, so i have to type... (0 Replies)
Discussion started by: Tharsan
0 Replies
10. Red Hat
Hi
We are planning to migrate to a new SAN storage environment. Our RHEL5.5 servers boot over SAN.
1. I was wondering if using "lvm mirroring" or "pvmove" would be a solution.
2. Do they do block level transfer?
Thanks (1 Reply)
Discussion started by: ikn3
1 Replies
LEARN ABOUT XFREE86
tran_bus_reset
tran_bus_reset(9e) Driver Entry Points tran_bus_reset(9e)
NAME
tran_bus_reset - reset a SCSI bus
SYNOPSIS
#include <sys/scsi/scsi.h> int prefix
tran_bus_reset(dev_info_t *hba_dip, int level);
INTERFACE LEVEL
Solaris DDI
PARAMETERS
hba_dip The dev_info_t pointer associated with the SCSI HBA.
level The level of reset required.
DESCRIPTION
The tran_bus_reset() vector in the scsi_hba_tran(9S) structure should be initialized during the HBA driver's attach(9E). It is an HBA
entry point to be called when a user initiates a bus reset through device control interfaces.
tran_bus_reset() must reset the SCSI bus without resetting targets.
level will be one of the following:
RESET_BUS Reset the SCSI bus only, not the targets.
Implementation is hardware specific. If it is not possible to reset the SCSI bus without changing the state and operating mode of the tar-
gets, the HBA driver should not initialize this vector or return failure.
RETURN VALUES
tran_bus_reset() should return:
1 on success.
0 on failure.
ATTRIBUTES
See attributes(5) for a description of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Stability Level |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5), tran_quiesce(9E), scsi_hba_tran(9S)
SunOS 5.10 17 Mar 1999 tran_bus_reset(9e)