def BlockdevWipe(disk, offset, size):
  try:
    rdev = _RecursiveFindBD(disk)
  except errors.BlockDeviceError:
    rdev = None

  if not rdev:
    _Fail("Cannot wipe device %s: device not found", disk.iv_name)
  if offset < 0:
    _Fail("Negative offset")
  if size < 0:
    _Fail("Negative size")
  if offset > rdev.size:
    _Fail("Wipe offset is bigger than device size")
  if (offset + size) > rdev.size:
    _Fail("Wipe offset and size are bigger than device size")

  _DumpDevice("/dev/zero", rdev.dev_path, offset, size, True)
yields the c-contigous strides
dataset/ETHPy150Open ganeti/ganeti/lib/backend.py/BlockdevWipe--crossover with--dataset/ETHPy150Open numba/numba/numba/dummyarray.py/iter_strides_c_contig