[U-Boot] [PATCH 4/4] UBI/UBIFS: Prevent UBI partition change while UBIFS is mounted

Ben Gardiner bengardiner at nanometrics.ca
Fri Oct 29 16:01:05 CEST 2010


On Thu, Oct 28, 2010 at 8:09 AM, Stefan Roese <sr at denx.de> wrote:
> Only allow (re-)assignment to an UBI partition/device when UBIFS is
> currently not mounted. Otherwise the following UBIFS commands will
> crash.
>
> Signed-off-by: Stefan Roese <sr at denx.de>

Applies to 908614f20f7f0f5df736eed21b88e81ebbf14e86 of
git://git.denx.de/u-boot.git.

One checkpatch warning:

WARNING: externs should be avoided in .c files
#89: FILE: common/cmd_ubi.c:45:
+int ubifs_is_mounted(void);

total: 0 errors, 1 warnings, 36 lines checked

Tested on da850evm with NAND, env.oob enabled. 'ubi part' failed while
a ubifs was mounted.

Tested-by: Ben Gardiner <bengardiner at nanometrics.ca>

Best Regards,
Ben Gardiner

---
Nanometrics Inc.
http://www.nanometrics.ca


More information about the U-Boot mailing list