On Mon, Sep 26, 2016 at 12:52:31PM +0200, Giorgio Dal Molin wrote: > Here a new set of patches implementing the command 'ubirename'. > > They are based on a patch serie from Sascha that restructures a bit > the barebox UBI APIs. In particular it is now easier to find the ubi > volume ids from the command code. Moreover the command code uses now > api functions to do the rename. > > This new set also fixes some minor cosmetic details noted by Sascha and > a real problem found in the function 'get_vol_id()': it was missing > a call to 'ubi_close_volume(desc)' hence leaving ubi volumes busy. > A simple test that showed the problem was: > > bb> ubimkvol /dev/nand0.ubi_volumes.ubi vol_A 10MiB > bb> ubirename /dev/nand0.ubi_volumes.ubi vol_A vol_B > bb> ubirmvol /dev/nand0.ubi_volumes.ubi vol_B > > The last command, ubirmvol, failed because 'vol_B' appeared to be still > busy after the rename (vol->readers==1). > > Giorgio Dal Molin (2): > mtd: ubi: add API call to rename volumes. > mtd: ubi: commands: added the new command 'ubirename'. Applied, thanks Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox