<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtd-utils.git/lib, branch v1.4.5</title>
<subtitle>A mirror of http://git.infradead.org/mtd-utils.git</subtitle>
<id>https://git.infraroot.at/mtd-utils.git/atom?h=v1.4.5</id>
<link rel='self' href='https://git.infraroot.at/mtd-utils.git/atom?h=v1.4.5'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/'/>
<updated>2011-06-25T06:10:49+00:00</updated>
<entry>
<title>punt redundant libcrc32</title>
<updated>2011-06-25T06:10:49+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2011-06-25T04:57:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=5319b84974fcb71504aed2d1b8285e9c0a4a4bb8'/>
<id>urn:sha1:5319b84974fcb71504aed2d1b8285e9c0a4a4bb8</id>
<content type='text'>
The libcrc32.a is only used in one place: mkfs.ubifs.  But this also
uses libmtd.a, and the only file in libcrc32.a is also in libmtd.a.
So libcrc32.a itself is completely redundant.  Punt!

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>libmtd: improve mtd_islocked interface</title>
<updated>2011-06-08T12:30:14+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-06-08T12:30:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=92a06994b7c3f146cbdb770b30780e32f021118f'/>
<id>urn:sha1:92a06994b7c3f146cbdb770b30780e32f021118f</id>
<content type='text'>
This patch first of all, re-names 'mtd_islocked()' into 'mtd_is_locked()' since
this seems to be the name Mike wanted, and it looks a bit nicer.

This patch also makes 'mtd_is_locked()' print an error message if it fails. I'm
not sure if it is good idea for a library to do so, but all functions do this,
so it certainly _not_ a good idea to be inconsistent.

However, for the special case, when the the "is locked" ioctl is not supported
or is not valid for this device, we do not print an error message and return
ENOTSUPP error code.

Thus, the user can distinguish between real errors and non-fatal "not
supported" cases.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>libmtd: add helper funcs for getting regioninfo and locked info</title>
<updated>2011-06-08T11:58:14+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2011-06-07T15:28:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=d1bc539a3a77bd38f1776d5026277d66b1661c8a'/>
<id>urn:sha1:d1bc539a3a77bd38f1776d5026277d66b1661c8a</id>
<content type='text'>
This extends the libmtd with the helper functions:
	mtd_regioninfo: interface to MEMGETREGIONINFO
	mtd_islocked: interface to MEMISLOCKED

Users of these functions will follow shortly ...

Artem: do not print error message in mtd_islocked()

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>libmtd: use O_CLOEXEC</title>
<updated>2011-06-07T06:52:51+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2011-06-07T06:19:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=58ece20278fdc8730a017a1744afe717ccb771de'/>
<id>urn:sha1:58ece20278fdc8730a017a1744afe717ccb771de</id>
<content type='text'>
Not strictly necessary, but this is good library behavior and
should carry no runtime overhead.

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>libmtd: use PRIu64 classifier for uint64_t printf arguments</title>
<updated>2011-04-21T12:43:39+00:00</updated>
<author>
<name>Andy Shevchenko</name>
<email>ext-andriy.shevchenko@nokia.com</email>
</author>
<published>2011-04-20T09:35:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=897125577fe136a7a1dead23b61f9ae861a93356'/>
<id>urn:sha1:897125577fe136a7a1dead23b61f9ae861a93356</id>
<content type='text'>
Signed-off-by: Andy Shevchenko &lt;ext-andriy.shevchenko@nokia.com&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>libmtd: fix OOB read and write interface</title>
<updated>2011-04-01T16:31:43+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-04-01T08:11:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=b22f7f386ba37a766aedd8e8cf34781a3d1daad2'/>
<id>urn:sha1:b22f7f386ba37a766aedd8e8cf34781a3d1daad2</id>
<content type='text'>
When reading and writing OOB we specify the address as absolute
offset from the beginning of the MTD device. This offset is
basically an absolute page offset plus the OOB offset. And it does
not have to be aligned to the min. I/O unit size (NAND page size).

So fix the 'do_oob_op()' function and remove incorrect checking
that the offset is page-aligned. This check leads to the following
errors:

libmtd: error!: unaligned address 2, mtd0 page size is 2048

But obviously, the intent was to write to offset 2 of the OOB area
of the very first NAND page.

Instead of that incorrect check, we should check that the OOB offset
we write to is within the OOB size and the length is withing the OOB
size. This patch adds such check.

Reported-by: Kelly Anderson &lt;kelly@silka.with-linux.com&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Tested-by: Kelly Anderson &lt;kelly@silka.with-linux.com&gt;
</content>
</entry>
<entry>
<title>libmtd: fix OOB size initialization in legacy code</title>
<updated>2010-11-29T14:57:35+00:00</updated>
<author>
<name>Ketil Froyn</name>
<email>ketil@froyn.name</email>
</author>
<published>2010-11-25T08:52:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=ae1cb618abbc591b7a63a09bc927f37968f889af'/>
<id>urn:sha1:ae1cb618abbc591b7a63a09bc927f37968f889af</id>
<content type='text'>
legacy_get_dev_info() forgot to set the OOB size

Signed-off-by: Ketil Froyn &lt;ketil@froyn.name&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>libmtd: make malloc failures fatal</title>
<updated>2010-10-02T14:19:44+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2010-10-01T17:13:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=b8bbd73bb5bd0b1f5f2c6a3441486d69a45cc79c'/>
<id>urn:sha1:b8bbd73bb5bd0b1f5f2c6a3441486d69a45cc79c</id>
<content type='text'>
This converts libmtd to the common xalloc helpers and in doing so, makes
memory allocation failures fatal rather than returning an error to the
caller.  I think this is acceptable behavior.

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>sumtool/libfec: convert "()" to "(void)" in func defs</title>
<updated>2010-10-02T14:16:36+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2010-10-01T17:11:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=2e6f057227fb60465bd76876cf783ad56561930c'/>
<id>urn:sha1:2e6f057227fb60465bd76876cf783ad56561930c</id>
<content type='text'>
Since these functions take no parameters, declare them as such.  The
subtle difference here is that gcc allows (without warning) people to
accidentally call funcs declared with "()" with arguments.  Using void
makes sure that gcc will reject such typos at compile time.

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>libmtd: unify some error messages</title>
<updated>2010-10-01T06:34:16+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2010-10-01T05:46:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=e2ddf154e1050faea5a24cf44345aec0d715a8c9'/>
<id>urn:sha1:e2ddf154e1050faea5a24cf44345aec0d715a8c9</id>
<content type='text'>
By using the same error message string, we only need one copy of it
in memory at runtime.

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
</feed>
