SCSI tape block size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all

I've got a problem report and a patch from John Adams, he says tmscsim 
driver under 2.6.17 and on doesn't allow him to read tapes with blocksize 
of 1MB. He fixes this with the below patch.

On Sun, 24 Sep 2006, John Adams wrote:

> --- drivers/scsi/tmscsim.c.bak	2006-09-24 12:55:08.000000000 -0400
> +++ drivers/scsi/tmscsim.c	2006-09-24 12:55:56.000000000 -0400
> @@ -2300,7 +2300,8 @@
>  	.this_id		= 7,
>  	.sg_tablesize		= SG_ALL,
>  	.cmd_per_lun		= 1,
> -	.use_clustering		= DISABLE_CLUSTERING,
> +	.use_clustering		= ENABLE_CLUSTERING,
> +	.max_sectors            = 2048,
>  };
>  
>  /***********************************************************************

It looks like

1) use_clustering doesn't directly affect maximum block size, so, he 
doesn't really need it, although, it might make sense for tmscsim to 
improve performance.

2) max_sectors is indeed what he needs, but it looks strange that now it 
has to be set by the low-level driver... For block devices you can set it 
at run time with /sys/block/sda/queue/max_sectors_kb, right? But what 
about tapes?

Sorry, didn't find too much documentation about it.

Thanks
Guennadi
---
Guennadi Liakhovetski
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux