* return value of ubinize
@ 2019-10-01 14:36 marcus.wolf
2019-10-02 6:52 ` David Oberhollenzer
0 siblings, 1 reply; 2+ messages in thread
From: marcus.wolf @ 2019-10-01 14:36 UTC (permalink / raw)
To: linux-mtd
Hello everybody,
while using ubinize in a script, I observed return value "0" on error:
marcus@debian:~/kernel/linux-os-build-all$ /usr/sbin/ubinize -vv -o blub.ubi -m 2048 -p 128KiB blub
ubinize: LEB size: 126976
ubinize: PEB size: 131072
ubinize: min. I/O size: 2048
ubinize: sub-page size: 2048
ubinize: VID offset: 2048
ubinize: data offset: 4096
ubinize: UBI image sequence number: 2119018939
iniparser: cannot open blub
ubinize: error!: cannot load the input ini file "blub"
marcus@debian:~/kernel/linux-os-build-all$ echo $?
0
I would expect non-0.
Hope this information ist interesting for someone.
Cheers,
Marcus Wolf
Wolf-Entwicklungen
Helene-Lange-Weg 23
80637 München
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: return value of ubinize
2019-10-01 14:36 return value of ubinize marcus.wolf
@ 2019-10-02 6:52 ` David Oberhollenzer
0 siblings, 0 replies; 2+ messages in thread
From: David Oberhollenzer @ 2019-10-02 6:52 UTC (permalink / raw)
To: marcus.wolf, linux-mtd
Hi,
On 10/1/19 4:36 PM, marcus.wolf@wolf-entwicklungen.de wrote:
> ubinize: error!: cannot load the input ini file "blub"
> marcus@debian:~/kernel/linux-os-build-all$ echo $?
> 0
>
> I would expect non-0.
>
This was fixed in mtd-utils with commit ce51dfe on July 1st.
The fix is in mtd-utils 2.1.1 which was released on July 21st.
As of right now, mtd-utils 2.1.1 is in Debian Bullseye and Sid,
Buster is still on 2.0.1, Stretch on 2.0.0 and Jessie on 1.5.1.
Regards,
David
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-02 6:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-01 14:36 return value of ubinize marcus.wolf
2019-10-02 6:52 ` David Oberhollenzer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).