On Thu, Nov 18, 2010 at 03:38:37AM -0000, Lukas Czerner wrote: > When the device have discard support and simultaneously discard zeroes > data (and it is properly advertised), then we can take advantage of such > behavior in several e2fsprogs tools. > > Add new flag CHANNEL_FLAGS_DISCARD_ZEROES for struct_io_channel so > each io_manager can take advantage of this. The flag is properly set > according to BLKDISCARDZEROES ioctl in unix_open. > > Also remove old mke2fs_discard_zeroes_data() function and substitute it > with helper which test this flag. > > Signed-off-by: Lukas Czerner <lczerner@xxxxxxxxxx> I merged this patch with a minor change; I renamed ext2fs_discard_zeroes_data() to io_channel_discard_zeros_data(). - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html