Re: [RFT PATCH] mmc: block: implement REQ_OP_WRITE_ZEROES

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 28, 2018 at 03:49:26PM +0800, Shawn Lin wrote:
> card->erased_byte read from SCR(for SD cards) or EXT_CSD[181](for eMMC)
> indicates whether the TRIM or ERASE make the erased data content zeros,
> but DISCARD doesn't. Use the fact to implement REQ_OP_WRITE_ZEROES.

I don't have the mmc spec in front of my, but the ATA/SCSI and NVMe
equivalents all have the problem that if the device decideds to not
deallocate the blocks it can leave the old data in place.  Can you
confirm that MMC gurantees that this is not the case?
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux