]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: ubi: don't allow to rename a volume to a name that already exist
authorPhilippe Reynes <philippe.reynes@softathome.com>
Wed, 23 Dec 2020 14:33:07 +0000 (15:33 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 4 Jan 2021 14:10:17 +0000 (09:10 -0500)
commit1639988fa4c0049e6580dc781fe9bb2c94258c02
treed8dc9240725505a2b34134629d098f1f9f6da672
parent19408a397cc634672a405f6235f65a718fc8e14c
cmd: ubi: don't allow to rename a volume to a name that already exist

This commits add a check on the command ubi rename. This check avoids
to rename a volume to with a name that is already used on another ubi
volume. If two volumes has the same name, then the ubi device can't be
mounted anymore.

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
cmd/ubi.c