support blkdev size query on osx/freebsd