Hi, folks. I am just getting into scsi on linux, feeling like a pioneer.
I've been writing some routines using the generic driver. Pretty handy.
Pretty sparse on documentation... All I have is the scsi howto and the
mfg's (IBM) scsi specs.

In one case, I am attempting to use "write_same" to cover an entire disk with
zeros (9Gb disk). The command completes after (exactly) 1 min and reports no
errs. But only a portion of the disk is zero'd. I can try it with several
starting sectors, and it always stops after 60 sec. Seems like a timeout,
so I did
        if (ioctl(dev,SG_GET_TIMEOUT,&i)<0) {perror(argv[1]); exit(errno);}

Although this is not reporting an error (neither compile nor runtime), it
is also not changing the value of 'i'. :-( Any ideas, please, on

1. is my job ending because of a timeout?
2. is there a timeout get/set that works (for the generic driver)?

PS: my main reason for using the generic driver is my SG_BIG_BUFF is 32k,
whereas the sd driver seems limited to 4k.

Thanks.
dave allen, colorado springs

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to