Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ata_scsi_translate(9) [suse man page]

ATA_SCSI_TRANSLATE(9)					  libata SCSI translation/emulat				     ATA_SCSI_TRANSLATE(9)

NAME
ata_scsi_translate - Translate then issue SCSI command to ATA device SYNOPSIS
int ata_scsi_translate(struct ata_device * dev, struct scsi_cmnd * cmd, void (*done) (struct scsi_cmnd *), ata_xlat_func_t xlat_func); ARGUMENTS
dev ATA device to which the command is addressed cmd SCSI command to execute done SCSI command completion function xlat_func Actor which translates cmd to an ATA taskfile DESCRIPTION
Our ->queuecommand function has decided that the SCSI command issued can be directly translated into an ATA command, rather than handled internally. This function sets up an ata_queued_cmd structure for the SCSI command, and sends that ata_queued_cmd to the hardware. The xlat_func argument (actor) returns 0 if ready to execute ATA command, else 1 to finish translation. If 1 is returned then cmd->result (and possibly cmd->sense_buffer) are assumed to be set reflecting an error condition or clean (early) termination. LOCKING
spin_lock_irqsave(host lock) RETURNS
0 on success, SCSI_ML_QUEUE_DEVICE_BUSY if the command needs to be deferred. AUTHOR
Jeff Garzik Author. COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 ATA_SCSI_TRANSLATE(9)

Check Out this Related Man Page

SCSI_SATL(8)							     SG3_UTILS							      SCSI_SATL(8)

NAME
scsi_satl - check SCSI to ATA Translation (SAT) device support SYNOPSIS
scsi_satl [--help] [--log] [--quiet] [--verbose] DEVICE DESCRIPTION
This Bourne shell script calls several SCSI commands on the given DEVICE that is assumed to be an ATA device behind a SCSI to ATA Transla- tion (SAT) layer (SATL). The results of each test and a pass/fail count are output. OPTIONS
Arguments to long options are mandatory for short options as well. -h, --help print out the usage message then exit. -L, --log the output to stderr (from each SCSI command executed) is appended to a file called 'scsi_satl.err' in the current working direc- tory. -q, --quiet the amount of output is reduced and typically only the pass/fail count is output. -v, --verbose increase level or verbosity. EXIT STATUS
The exit status of this script is the number of "bad" errors found. So an exit status of 0 means all mandatory SCSI commands worked as expected. AUTHORS
Written by D. Gilbert COPYRIGHT
Copyright (C) 2011 Douglas Gilbert This software is distributed under a FreeBSD license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR- POSE. SEE ALSO
sg_inq, sg_luns, sg_turs, sg_requests, sg_vpd, sg_senddiag, sg_modes, sg_sat_identify (sg3_utils) sg3_utils-1.33 December 2011 SCSI_SATL(8)
Man Page

11 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Maxtor vs. OpenBSD

Can't setup OpenBSD 3.4 with Maxtor Diamond Plus 9 80Gb ATA/133 HDD... Install process stops at hardware initialize, before installing... :confused: Any Comments... Thanks (2 Replies)
Discussion started by: bsdave
2 Replies

2. Linux Benchmarks

PowerMac 4400 YLD 3.0

CPU/Speed: PowerPC 603ev 200Mhz Ram: 92M EDO Ram Motherboard: Apple Bus: 2 PCI Cache: L1 32k and L2 256k Controller: ATA Disk: 2GB ATA Load: 1 user, running httpd, Xwin, various daemons Kernel: Linux 2.4.22-2f Kernel ELF?: ??? pgms: gcc versión 3.2.2 20030217 (Yellow Dog Linux 3.0 3.2.2-2a);... (0 Replies)
Discussion started by: clemare
0 Replies

3. UNIX for Dummies Questions & Answers

How to delete all email messages at ONE time?

These are some of the mail command: Usage: ? print this help message # display message number # - print previous + next (no delete) ! cmd execute cmd <CR> next (no delete) a position at and read... (5 Replies)
Discussion started by: bobo
5 Replies

4. SCO

SCO 5.0.7 and Serial ATA HDD question

Hi guys, I have this quick question , is it posible to isntall SCO 5.0.7 on a serial ATA and if it is can you tell me how or maybe a website that has some info about this. I'm not using any raid, just one HDD. Thanks a lot (0 Replies)
Discussion started by: josramon
0 Replies

5. UNIX for Dummies Questions & Answers

Editing BRUTAB

Hello, I get the following in one of my error logs: Device /dev/sda, SATA disks accessed via libata are not currently supported by smartmontools. When libata is given an ATA pass-thru ioctl() then an additional '-d libata' device type will be added to smartmontools. --------------- I... (0 Replies)
Discussion started by: mojoman
0 Replies

6. AIX

Core File issue!Need help in DBX cmd's!

Hi , We have a Application running on AIX5.3 .It built by collection of c and pc programs. Now , i got a file "core" generated by "ProcessIse" executable. Really i do not have idea about core file analysis. can any one please help me?How do i fix this issue ? we have installed dbx can... (1 Reply)
Discussion started by: vparunkumar
1 Replies

7. UNIX and Linux Applications

Opinion on modification for SMARTMON

Hello, I get the following in one of my error logs: Device /dev/sda, SATA disks accessed via libata are not currently supported by smartmontools. When libata is given an ATA pass-thru ioctl() then an additional '-d libata' device type will be added to smartmontools. --------------- ... (1 Reply)
Discussion started by: mojoman
1 Replies

8. Shell Programming and Scripting

Effect of using eval to execute a command as opposed to writing it on the commandline

cmd='date | wc' or cmd="date | wc" $cmdIf this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument". What is meant by expansion of pipe. When we execute date | wc on the command line, it... (2 Replies)
Discussion started by: daudiam
2 Replies

9. UNIX for Dummies Questions & Answers

Unable to execute the complete cmd - using find command

Hi, I'm unable to execute the below command completely ; it's not allowing me to type the complete command. It is allowing till "xargs" and i cannot even press enter after that. I'm using Solaris. Let me know if anything needs to be added so as to execute the complete command. Appreciate... (12 Replies)
Discussion started by: venkatesht
12 Replies

10. Linux

Search a file with specified pattern

May I know how to search for a file whose name is embedded with 3007 but it shouldn't begin or end with 3007. For ex. : 3008ab3007cd1007. (10 Replies)
Discussion started by: ravisingh
10 Replies

11. SCO

Error F painit on bootup

I have a known good external SCSI HD running SCO UNIX OpenServer 5.0.7. I decided that I wanted to be able to run this drive on another computer, so I bought the same SCSI card as before (LSI) and then attempted to boot on the other system. The bootup process hung with the error F painit. I've... (13 Replies)
Discussion started by: Transpower
13 Replies