Linux-mtd Archive on lore.kernel.org
 help / color / Atom feed
* 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, back to index

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

Linux-mtd Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-mtd/0 linux-mtd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mtd linux-mtd/ https://lore.kernel.org/linux-mtd \
		linux-mtd@lists.infradead.org linux-mtd@archiver.kernel.org
	public-inbox-index linux-mtd

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-mtd


AGPL code for this site: git clone https://public-inbox.org/ public-inbox