<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtd-utils.git/include, 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-08T12:30:14+00:00</updated>
<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>include/mtd: sync with kernel</title>
<updated>2011-06-07T05:03:29+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2011-06-06T18:22:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=f507ec5e6be795fcb67e472ce98fd084ac9bb1d1'/>
<id>urn:sha1:f507ec5e6be795fcb67e472ce98fd084ac9bb1d1</id>
<content type='text'>
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>mtd-utils: improve simple_strtoX usage commentary</title>
<updated>2011-04-09T14:49:22+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-04-08T15:05:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=dd2a035dd6cb7408a99fac2052b6812e7f489de8'/>
<id>urn:sha1:dd2a035dd6cb7408a99fac2052b6812e7f489de8</id>
<content type='text'>
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>mtd-utils: common.h: simple_strtoll type usage</title>
<updated>2011-02-25T08:52:57+00:00</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2011-02-16T01:47:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=1b083e0c9011f32028a79d4ad707deaa17ad1b5e'/>
<id>urn:sha1:1b083e0c9011f32028a79d4ad707deaa17ad1b5e</id>
<content type='text'>
We must use "long long" and "unsigned long long" types when
implementing the functions "simple_strtoll()" and "simple_strtoull()",
respectively. This prevents casting/truncation errors on systems where
"long" is not the same size as "long long" (that is, on most systems).

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.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>common.h: Add MAX() macro, fix MIN()</title>
<updated>2010-12-02T03:25:23+00:00</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2010-11-29T08:01:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=3941e9fd08f1d03a52f6584b70077ff0ac866696'/>
<id>urn:sha1:3941e9fd08f1d03a52f6584b70077ff0ac866696</id>
<content type='text'>
Add MAX() macro to common.h, to be used in future patches.

Also a style change in comma location on MIN().

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>mtd-utils: xalloc: simplify/unify error messages</title>
<updated>2010-10-01T06:33:32+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2010-10-01T05:45:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=3afb8f079dda8439c17f191ff593b7c4bf1c4b57'/>
<id>urn:sha1:3afb8f079dda8439c17f191ff593b7c4bf1c4b57</id>
<content type='text'>
I'm not sure that if we actually are out of memory that declaring the
failing allocation size is useful in the output.  So use the same
simple string in every error message to cut down on size (there will
only be one copy of this at runtime).  Size is a much more common
concern than handling OOM issues which most likely aren't the fault
of mtd-utils in the first place.

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>mtd-utils: dont redefine MIN()</title>
<updated>2010-10-01T06:33:14+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2010-10-01T05:44:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=ee3c2bef131ff1d6723b66d5cec3c8738954b407'/>
<id>urn:sha1:ee3c2bef131ff1d6723b66d5cec3c8738954b407</id>
<content type='text'>
Some C library headers will define MIN(), so add an #ifndef check.

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>mtd-utils: sys_errmsg: optimize indentation</title>
<updated>2010-10-01T06:31:25+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2010-10-01T05:39:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=90ebf6f62007726bea619dcb5beb6e858bedfd6d'/>
<id>urn:sha1:90ebf6f62007726bea619dcb5beb6e858bedfd6d</id>
<content type='text'>
Rather than do a for loop and output 1 space at a time, let the printf
code take care of indenting the string based on the constant length.

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