[LTP] [PATCH v5 1/3] lib: alter find_free_loopdev()
Cyril Hrubis
chrubis@suse.cz
Wed Jul 17 12:54:18 CEST 2019
Hi!
> > Another option is to leave this function internal and export a wrapper
> > for the exact needed functionality:
> >
> > /* Just find a free minor number */
> > int tst_find_free_loopdev(void)
> > {
> > return find_free_loopdev(NULL, 0);
> > }
> >
> > I don't mind wither way.
> Hi Amir
>
> The second way looks better for me. But I also want to hear the idea of cyril.
Well I wanted to keep the path exposed to user in a case that there
would be a test that would need more than one device. But it's not like
we cannot change the API later when it's actually needed.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list