commit | 7347b5ff7090b2b399b7921a266255cd55bbd78f | [log] [tgz] |
---|---|---|
author | Marco Sanvido <marco@purestorage.com> | Fri Jan 20 15:49:27 2012 -0800 |
committer | Nicholas Bellinger <nab@linux-iscsi.org> | Tue Feb 07 06:48:20 2012 +0000 |
tree | 3952df49566e07f4cbdbc7aef6b28abadf008dca | |
parent | 735703cac08f34a197e1c6331ca9adc8a52d6046 [diff] |
target: Fix iblock se_dev_attrib.unmap_granularity The block layer keeps q->limits.discard_granularity in bytes, but iblock (and the SCSI Block Limits VPD page) keep unmap_granularity in blocks. Report the correct value when exporting block devices by dividing to convert bytes to blocks. Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>