[PATCH V3 0/5] Add MMC erase and secure erase V3



Hi

Add ability to do MMC erase and secure erase operations from userspace,
using the BLKDISCARD ioctl and a newly created BLKSECDISCARD ioctl.

This is version 3 of these patches.

Changes from V2

- move the addition of BLKSECDISCARD to a separate patch and implement it
using I/O requests
- move the MMC support of secure discard to a separate patch and support
the secure discard I/O request

Changes from V1

- use discard I/O requests instead of implementing BLKDISCARD in mmc_block
- do not validate erase size for MMC erases, instead round to erase size
- rename MMC max_erase to pref_erase and expose it through sysfs as
preferred_erase_size


Adrian Hunter (5):
mmc: Add erase, secure erase, trim and secure trim operations
mmc_block: Add discard support
omap_hsmmc: Add erase capability
block: Add secure discard
mmc_block: Add support for secure discard

block/blk-core.c | 6 +-
block/blk-lib.c | 6 +
block/compat_ioctl.c | 1 +
block/elevator.c | 4 +
block/ioctl.c | 15 ++-
drivers/mmc/card/block.c | 82 ++++++++++-
drivers/mmc/card/queue.c | 19 ++-
drivers/mmc/core/core.c | 346 +++++++++++++++++++++++++++++++++++++++++
drivers/mmc/core/core.h | 2 +
drivers/mmc/core/mmc.c | 47 ++++++-
drivers/mmc/core/sd.c | 82 ++++++++++
drivers/mmc/core/sd_ops.c | 48 ++++++
drivers/mmc/core/sd_ops.h | 1 +
drivers/mmc/host/omap_hsmmc.c | 13 ++-
include/linux/bio.h | 7 +-
include/linux/blkdev.h | 10 +-
include/linux/fs.h | 2 +
include/linux/mmc/card.h | 19 +++
include/linux/mmc/core.h | 19 +++
include/linux/mmc/host.h | 1 +
include/linux/mmc/mmc.h | 24 ++-
include/linux/mmc/sd.h | 5 +
kernel/trace/blktrace.c | 8 +
23 files changed, 746 insertions(+), 21 deletions(-)


Regards
Adrian

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • [PATCH V4 0/5] Add MMC erase and secure erase V4
    ... Add ability to do MMC erase and secure erase operations from userspace, ... move the MMC support of secure discard to a separate patch and support ...
    (Linux-Kernel)
  • Re: [PATCH V2 3/4] mmc_block: Add discard and secure discard support
    ... Subject: mmc_block: Add discard and secure discard support ... Enable MMC to service discard requests. ... completely discarded erase group. ...
    (Linux-Kernel)
  • Re: Securely erasing data from hard drive
    ... drive is a bit more secure than simply erasing the files. ... does not erase the data on the disk, ... It'll be faster to replace the drive and reinstall the operating system than trying to security ...
    (microsoft.public.windowsxp.general)
  • Re: Securely erasing data from hard drive
    ... Formatting a disk does not erase the data on the disk, ... The simple answer to your question, with many examples given here, is that yes, there are secure deletion programs available to erase individual files from your hard drive with DOD-compliant levels of erasing/rewriting to cover your tracks. ... As for just reformatting the hard drive or removing it and taking it with you --- is it your property? ...
    (microsoft.public.windowsxp.general)
  • [PATCH v4 0/3]mmc: enable TRIM/ERASE caps for SDHCI host
    ... These patches enable TRIM/ERASE capability for SDHCI host controller. ... Rightnow max_discard_sectors value for mmc queue is UINT_MAX which means ... block layer can accept unlimited sectors to erase at one time. ...
    (Linux-Kernel)