vfs_block: remove diagnostic warnings

These warnings are triggered by requests either using byte offsets or
reading a number of bytes that is not a multiple of the block size as
well as by components using the plugin with a different block size than
the backend block session provides.

Fixes #1964.
This commit is contained in:
Josef Söntgen 2016-05-13 09:58:14 +02:00 committed by Christian Helmuth
parent 3ba61a2ddf
commit 59aec6114b

View File

@ -204,8 +204,6 @@ class Vfs::Block_file_system : public Single_file_system
* than block size, we also have to read the block first.
*/
if (displ > 0 || length < _block_size) {
PWRN("offset:%llu block_size:%zd displacement:%llu length:%llu",
seek_offset, _block_size, displ, length);
_block_io(blk_nr, _block_buffer, _block_size, false);
/* rewind seek offset to account for the block read */
@ -281,11 +279,6 @@ class Vfs::Block_file_system : public Single_file_system
continue;
}
if (displ > 0)
PWRN("offset:%llu is not aligned to block_size:%zu"
" displacement:%llu", seek_offset, _block_size,
displ);
nbytes = _block_io(blk_nr, _block_buffer, _block_size, false);
if ((unsigned)nbytes != _block_size) {
PERR("error while reading block:%llu from block device",