mushanov

updated

9 years ago

M

mushanov

4 Posts

0

2437

December 9th, 2017 18:00

Blocks discarding and BLKDISCARDZEROES ioctl support

Hi to all!

Does scini devices supports BLKDISCARDZEROES ioctl call (queue/discard_zeroes_data in sysfs), i.e. guarantees that discarded blocks read back as zeroes?

I'm using ScaleIO R2_0.13000.211 on CentOS 7.2.1511 with kernel 3.10.0-327.36.3, and blkdiscard syscall works as expected: discarded blocks shows as 'trimmed capacity' and was immediately read back as zeroes. But BLKDISCARDZEROES ioctl call returns zero, which actually incorrect.