commit | 525ec495e021068aa8635a0e18ff60695f5b1f4f | [log] [tgz] |
---|---|---|
author | Sagi Grimberg <sagi@grimberg.me> | Wed Apr 24 11:43:23 2019 -0700 |
committer | Christoph Hellwig <hch@lst.de> | Thu Apr 25 16:51:19 2019 +0200 |
tree | 3d18692f443f67dfe4aeef38f5d3608b2a28f92e | |
parent | a5dffbb66d250a7ef07e27a2e75b8d9d7af2ab41 [diff] |
nvmet-file: clamp-down file namespace lba_shift When the backing file is a tempfile for example, the inode i_blkbits can be 1M in size which causes problems for hosts to support as the disk block size. Instead, expose the minimum between i_blkbits and 12 (4K sector size). Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by:- Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de>