ubiformat: Cleanly umount and detach the ubi before formating
This was an open fixme for some time. ubiformat does not care about used
ubi volumes or attached ubis.

This patch adds functionality that umounts all filesystems that are
mounted from this nand device. After that the ubi is detached. Then the
normal ubiformat code reformats the ubi. If a ubi was detached
previously, the code tries to reattach the ubi. Filesystems are not
remounted.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent abb8c27 commit d43c5b45ab24b9639a103b2ff9d829962c0e472b
@Markus Pargmann Markus Pargmann authored on 8 Mar 2016
Sascha Hauer committed on 8 Apr 2016
Showing 1 changed file
View
commands/ubiformat.c