Support For Creating / Removing UBI Blocks
Baruch Siach
baruch at tkos.co.il
Mon Aug 1 11:02:33 UTC 2016
Hi Metin Kaya,
Please keep the list on Cc.
On Mon, Aug 01, 2016 at 01:39:27PM +0300, Metin Kaya wrote:
> Removed ubimkblock and ubirmblock. However, I need to use -c and -r command
> line parameters without argument. Do you know how to do it? I just need an
> example.
Just put "cr" in the getopt32() optstring parameter, without additional
characters. See the mkvol -m parameter, for example. See also the detailed
getopt32() documentation comment in libbb/getopt32.c.
baruch
> On Mon, Jul 25, 2016 at 11:07 AM, Baruch Siach <baruch at tkos.co.il> wrote:
> > On Mon, Jul 25, 2016 at 10:56:41AM +0300, Metin Kaya wrote:
> > > do_rmvol also has the same problem.
> > > If I use mkblock and rmblock, then they can't be unique.
> > > Hence, I renamed ubimkblock as ubicrblock and ubirmblock as ubidlblock.
> > > Please see the attached patch.
> >
> > Now I see that upstream (mtd-utils) name for this utility is just
> > 'ubiblock', with -c and -r command line parameters for create and remove,
> > respectively. Busybox tries to match upstream command line interface as
> > much as possible, so please use the same name and parameters. As an added
> > bonus 'ubiblock' uniquely identifies with
> >
> > applet_name[3] == 'b'.
> >
> > Thanks,
> > baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
More information about the busybox
mailing list