Userspace write to UBI partitions

Atlant Schmidt aschmidt at dekaresearch.com
Wed Feb 8 08:49:35 EST 2012


All:

  But there are times when you really want a block erased
  and erased NOW; in that case, "unmap" isn't what you
  want as it only schedules the PEB for erasure at some
  future time. And if a power cut intervenes, that
  scheduling for erasure may be lost and the ultimate
  erasure may not take place for a long, long time.

  So if you really intended to destroy the data, "unmap"
  is not the correct function to call.

                              Atlant

-----Original Message-----
From: linux-mtd-bounces at lists.infradead.org [mailto:linux-mtd-bounces at lists.infradead.org] On Behalf Of Ricard Wanderlof
Sent: Wednesday, February 08, 2012 07:19
To: Artem Bityutskiy
Cc: Ricard Wanderlof; Linux mtd; Shmulik Ladkani
Subject: Re: Userspace write to UBI partitions


> >  In the meantime, there doesn't seem to be an ioctl for erasing
> > blocks?
>
> In UBI it is called "unmap" instead of "erase":
>
> http://www.linux-mtd.infradead.org/doc/ubi.html#L_unmap

Thanks. I've been staring at the UBI page for too long now I guess, didn't
realize that was what I should have been looking for...

/Ricard
--
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/


 Click https://www.mailcontrol.com/sr/iNq3RabdjW!TndxI!oX7UskfEqpntbSQBh5+L1x62eAEpsHd6qIu4!3pOM!83jtSy7QxM5RExv!1lqOECv!Swg==  to report this email as spam.

This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.



More information about the linux-mtd mailing list