| commit | c507c3703afffac9450714d065b6e7541893af39 | [log] [tgz] |
|---|---|---|
| author | Josef Bacik <jbacik@fb.com> | Fri Feb 10 13:04:26 2017 -0500 |
| committer | Josef Bacik <jbacik@fb.com> | Fri Feb 10 14:23:54 2017 -0500 |
| tree | 8e5d40200927e7ec441a8b55d3c552bcfb7d4858 | |
| parent | 0421157626b0d6d3b6a57a06cf51858c015ebb8c [diff] |
nbd: set the logical and physical blocksize properly We noticed when trying to do O_DIRECT to an export on the server side that we were getting requests smaller than the 4k sectorsize of the device. This is because the client isn't setting the logical and physical blocksizes properly for the underlying device. Fix this up by setting the queue blocksizes and then calling bd_set_size. Signed-off-by: Josef Bacik <jbacik@fb.com>