mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
scst_vdisk: Kernel 2.6.30 build fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6502 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -5063,6 +5063,17 @@ out:
|
||||
return CMD_SUCCEEDED;
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
|
||||
/*
|
||||
* See also patch "block: Export I/O topology for block devices and partitions"
|
||||
* (commit ID c72758f33784).
|
||||
*/
|
||||
static inline unsigned int queue_physical_block_size(struct request_queue *q)
|
||||
{
|
||||
return 4096;
|
||||
}
|
||||
#endif
|
||||
|
||||
static enum compl_status_e vdisk_exec_read_capacity16(struct vdisk_cmd_params *p)
|
||||
{
|
||||
struct scst_cmd *cmd = p->cmd;
|
||||
|
||||
Reference in New Issue
Block a user