Skip to content
Commit 0d8f45be authored by Alexandre Besnard's avatar Alexandre Besnard Committed by Tom Rini
Browse files

cmd: ubi.c: skip part command if right partition is already attached



Attaching a UBI partition may take a while, since scanning the memory is
required.
It thus makes sense to avoid a detach/scan/attach cycle when the right
partition is already attached, and let the calling process call 'detach'
beforehand if it needs it.

This commit checks for the currently attached UBI partition, and skips
reattaching if not needed, showing an information.

Signed-off-by: default avatarAlexandre Besnard <alexandre.besnard@softathome.com>
parent 8c2e5d92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment