Jes, >> BLKZEROOUT >> > > Trying to read the code, as this ioctl doesn't seem to be documented > anywhere I can find.... it looks like this ioctl zeroes out a device. > > It doesn't help me obtain the information I need to make a decision in > mdadm as whether to overwrite all or compare+write when resyncing a RAID > array. I wasn't trying to solve your policy decision problem. I was merely responding to Shaohua's concerns about discard vs. zeroes and wearing out the media. If you want to act based on the media type, the best heuristic we have right now is the rotational sysfs attribute / BLKROTATIONAL ioctl. It'll be one for spinning rust and zero for pretty much everything else. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html