<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtd-utils.git/ubi-utils, branch v2.1.2</title>
<subtitle>A mirror of http://git.infradead.org/mtd-utils.git</subtitle>
<id>https://git.infraroot.at/mtd-utils.git/atom?h=v2.1.2</id>
<link rel='self' href='https://git.infraroot.at/mtd-utils.git/atom?h=v2.1.2'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/'/>
<updated>2020-02-09T21:13:18+00:00</updated>
<entry>
<title>mtd-utils: Add checks to code that copies strings into fixed sized buffers</title>
<updated>2020-02-09T21:13:18+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2020-01-25T13:46:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=3ea4705086b9b26a4acde7e83eb05be248ade503'/>
<id>urn:sha1:3ea4705086b9b26a4acde7e83eb05be248ade503</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>libubi: remove private kernel header from includes</title>
<updated>2020-01-30T10:23:02+00:00</updated>
<author>
<name>Bastian Germann</name>
<email>bastiangermann@fishpost.de</email>
</author>
<published>2020-01-29T18:50:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=42e051acd32c28c2f93c946d0c4bf6f9eada2aa4'/>
<id>urn:sha1:42e051acd32c28c2f93c946d0c4bf6f9eada2aa4</id>
<content type='text'>
libubi.h includes ubi-media.h which was made private in the kernel a
long time ago. There are users of libubi.h, e.g. swupdate, which have to
have ubi-media.h available at build time with this inclusion.

However, libubi.h uses only one symbol from ubi-media.h. Define that symbol
in the header to enable using libubi.h without installing ubi-media.h.

Make up for the transitive symbol use in ubiformat.c by including ubi-media.h.

Signed-off-by: Bastian Germann &lt;bastiangermann@fishpost.de&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>mtd-utils: Fix return value of ubiformat</title>
<updated>2020-01-13T09:37:37+00:00</updated>
<author>
<name>Barry Grussling</name>
<email>barry@grussling.com</email>
</author>
<published>2020-01-12T20:33:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=95633c4dfe943a701d4fcd809e6cabf4bf8710b8'/>
<id>urn:sha1:95633c4dfe943a701d4fcd809e6cabf4bf8710b8</id>
<content type='text'>
This changeset fixes a feature regression in ubiformat.  Older versions of
ubiformat, when invoked with a flash-image, would return 0 in the case no error
was encountered.  Upon upgrading to latest, it was discovered that ubiformat
returned 255 even without encountering an error condition.

This changeset corrects the above issue and causes ubiformat, when given an
image file, to return 0 when no errors are detected.

Tested by running through my loading scripts and verifying ubiformat returned
0.

Signed-off-by: Barry Grussling &lt;barry@grussling.com&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>ubihealthd: Build only if sys/random.h is present</title>
<updated>2019-12-08T22:02:57+00:00</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2019-12-04T17:11:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=1312aedbe0a346999581b243324594e1abe2cebf'/>
<id>urn:sha1:1312aedbe0a346999581b243324594e1abe2cebf</id>
<content type='text'>
The ubihealthd depends on sys/random.h , which is not present on some
older systems. Build ubihealthd only if sys/random.h is present.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>ubiformat: don't leak file descriptors</title>
<updated>2019-11-10T14:30:04+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-11-10T13:52:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=af06f37bdee2097d23832da99a3e7725de2f695e'/>
<id>urn:sha1:af06f37bdee2097d23832da99a3e7725de2f695e</id>
<content type='text'>
The original code had a 'goto out_close' directly after a return error
code, which is obviously not what was intended.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>ubihealthd: Add option -h/--help</title>
<updated>2019-10-07T08:14:49+00:00</updated>
<author>
<name>Alexander Dahl</name>
<email>post@lespocky.de</email>
</author>
<published>2019-10-03T06:35:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=e0fecfef3463f9585fef878aba60b0b92b9ffc08'/>
<id>urn:sha1:e0fecfef3463f9585fef878aba60b0b92b9ffc08</id>
<content type='text'>
Using '?' as option did not work, and would be strange to pass anyway,
because it's a glob char for the shell and you would have to escape it
like ./ubihealthd -\? … use the more common -h/--help instead.

Note: this does not touch the output, just changes the options itself.

Signed-off-by: Alexander Dahl &lt;post@lespocky.de&gt;
Acked-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>ubihealthd: Add missing sentinel in options array</title>
<updated>2019-10-07T08:14:45+00:00</updated>
<author>
<name>Alexander Dahl</name>
<email>post@lespocky.de</email>
</author>
<published>2019-10-03T06:35:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=ab886a5a7e6c1f135f9f672811920322318003c9'/>
<id>urn:sha1:ab886a5a7e6c1f135f9f672811920322318003c9</id>
<content type='text'>
`getopt_long()` requires a null terminated array, otherwise we get
segfaults when passing invalid options.

Fixes: 7f0e2dc21fb2 ("ubi-utils: Implement a ubihealthd")
Signed-off-by: Alexander Dahl &lt;post@lespocky.de&gt;
Acked-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>ubiupdatevol: Prevent null pointer dereference</title>
<updated>2019-09-10T08:16:51+00:00</updated>
<author>
<name>Bastian Germann</name>
<email>bastiangermann@fishpost.de</email>
</author>
<published>2019-09-08T19:59:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=3fd38416e7a4817d18173cdebd5b4c5d62c06220'/>
<id>urn:sha1:3fd38416e7a4817d18173cdebd5b4c5d62c06220</id>
<content type='text'>
libubi_close(libubi) is called in the error handler if libubi is null.
Prevent that by handling the error case similar to the other ubi
executables.

Signed-off-by: Bastian Germann &lt;bastiangermann@fishpost.de&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>ubi-utils: Implement a ubihealthd</title>
<updated>2019-08-25T11:50:22+00:00</updated>
<author>
<name>Richard Weinberger</name>
<email>richard@nod.at</email>
</author>
<published>2019-07-25T20:34:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=7f0e2dc21fb291a9815fedb6e9e2c572db43c8c9'/>
<id>urn:sha1:7f0e2dc21fb291a9815fedb6e9e2c572db43c8c9</id>
<content type='text'>
ubihealthd is a simple daemon which scans every PEB
of an UBI device in random order.
It helps to deal with read disturb on systems which either
reboot seldom, use fastmap or read few data.

To use this daemon you need Linux &gt;= v5.1.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
</content>
</entry>
<entry>
<title>ubinize: Exit with non-zero exit code on error.</title>
<updated>2019-07-02T12:33:07+00:00</updated>
<author>
<name>Patrick Doyle</name>
<email>wpdster@gmail.com</email>
</author>
<published>2019-07-01T18:25:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=ce51dfe8c4e8ca25f23f3b48c8662bfd1fda1f37'/>
<id>urn:sha1:ce51dfe8c4e8ca25f23f3b48c8662bfd1fda1f37</id>
<content type='text'>
...specifically -1 in all of the new cases.

Signed-off-by: Patrick Doyle &lt;pdoyle@irobot.com&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
</feed>
