Wang Xixu has uploaded this change for review. ( http://gerrit.cloudera.org:8080/20680
Change subject: KUDU-3523 Use f_bsize as Kudu block size instead of st_blksize ...................................................................... KUDU-3523 Use f_bsize as Kudu block size instead of st_blksize Currently, Kudu uses st_blksize to decide the block size. But st_blksize is preferred I/O block size, not the real filesystem block size. In some systems, st_blksize is 64K, but at the same time the file system block size is 4K. Kudu writes 64 bytes data into this file system, it expects the file on disk size is 64K, but actually, it's on disk size is 4K. Therefore, it is better to use f_bsize (file system block size) as Kudu's block size. Change-Id: I04343caf5fe377a4fa9b57e6e450307e6b995928 --- M src/kudu/util/env_posix.cc 1 file changed, 6 insertions(+), 3 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/80/20680/1 -- To view, visit http://gerrit.cloudera.org:8080/20680 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I04343caf5fe377a4fa9b57e6e450307e6b995928 Gerrit-Change-Number: 20680 Gerrit-PatchSet: 1 Gerrit-Owner: Wang Xixu <[email protected]>
