Josef Bacik e544541b07 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>
Signed-off-by: Jens Axboe <axboe@fb.com>
2017-02-21 12:51:54 -07:00
..
2017-02-20 17:55:15 -08:00
2016-12-25 10:47:44 +01:00
2016-12-18 15:49:10 -08:00
2017-02-20 14:23:40 +01:00
2017-02-20 16:42:43 -08:00
2016-12-25 17:21:22 +01:00
2017-02-21 10:57:33 -08:00
2017-02-16 10:22:41 -08:00
2017-02-21 10:57:33 -08:00
2016-12-15 12:46:48 -08:00
2016-12-25 10:47:44 +01:00
2016-12-14 10:49:33 -08:00
2016-12-15 11:45:13 -08:00
2017-02-20 17:23:57 -08:00
2017-02-20 17:55:15 -08:00
2017-02-21 10:57:33 -08:00
2017-02-20 14:22:50 +01:00
2017-02-20 16:42:43 -08:00
2016-12-24 11:27:45 -08:00