mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
UBI: rename_volumes: Use UBI_METAONLY
By using UBI_METAONLY in rename_volumes() it is now possible to rename an UBI volume atomically while it is open for writing. This is useful for firmware upgrades. Cc: Ezequiel Garcia <[email protected]> Cc: Andrew Murray <[email protected]> Signed-off-by: Richard Weinberger <[email protected]> Tested-by: Guido Martínez <[email protected]> Reviewed-by: Guido Martínez <[email protected]> Tested-by: Christoph Fritz <[email protected]> Tested-by: Andrew Murray <[email protected]>
This commit is contained in:
parent
fafdd2bf26
commit
892abde56c
1 changed files with 1 additions and 1 deletions
|
|
@ -736,7 +736,7 @@ static int rename_volumes(struct ubi_device *ubi,
|
|||
goto out_free;
|
||||
}
|
||||
|
||||
re->desc = ubi_open_volume(ubi->ubi_num, vol_id, UBI_READWRITE);
|
||||
re->desc = ubi_open_volume(ubi->ubi_num, vol_id, UBI_METAONLY);
|
||||
if (IS_ERR(re->desc)) {
|
||||
err = PTR_ERR(re->desc);
|
||||
ubi_err(ubi, "cannot open volume %d, error %d",
|
||||
|
|
|
|||
Loading…
Reference in a new issue