mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
devices: put ifdef around BLKPBSZGET
BLKPBSZGET is not defined before kernel version 2.6.32 (e.g. rhel5)
This commit is contained in:
parent
09bc2d0fd1
commit
eb6aa5fefe
@ -200,6 +200,7 @@ int dev_get_direct_block_sizes(struct device *dev, unsigned int *physical_block_
|
|||||||
do_close = 1;
|
do_close = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef BLKPBSZGET /* not defined before kernel version 2.6.32 (e.g. rhel5) */
|
||||||
/*
|
/*
|
||||||
* BLKPBSZGET from kernel comment for blk_queue_physical_block_size:
|
* BLKPBSZGET from kernel comment for blk_queue_physical_block_size:
|
||||||
* "the lowest possible sector size that the hardware can operate on
|
* "the lowest possible sector size that the hardware can operate on
|
||||||
@ -209,6 +210,7 @@ int dev_get_direct_block_sizes(struct device *dev, unsigned int *physical_block_
|
|||||||
stack;
|
stack;
|
||||||
pbs = 0;
|
pbs = 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* BLKSSZGET from kernel comment for blk_queue_logical_block_size:
|
* BLKSSZGET from kernel comment for blk_queue_logical_block_size:
|
||||||
|
Loading…
Reference in New Issue
Block a user