<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtd-utils.git/nand-utils/nandwrite.c, branch v2.3.1</title>
<subtitle>A mirror of http://git.infradead.org/mtd-utils.git</subtitle>
<id>https://git.infraroot.at/mtd-utils.git/atom?h=v2.3.1</id>
<link rel='self' href='https://git.infraroot.at/mtd-utils.git/atom?h=v2.3.1'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/'/>
<updated>2022-03-28T06:49:40+00:00</updated>
<entry>
<title>nandwrite: warn about writing 0xff blocks</title>
<updated>2022-03-28T06:49:40+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>rafal@milecki.pl</email>
</author>
<published>2022-03-25T12:00:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=e62ea740c5e4edb37065193c400a3a82d5479c15'/>
<id>urn:sha1:e62ea740c5e4edb37065193c400a3a82d5479c15</id>
<content type='text'>
Such blocks may be incorrectly treated as empty (even though they may
have non-erase OOB). Warn about it so people may start useing
--skip-all-ffs .

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>mtd-utils: Fix potential negative arguments passed to close(2)</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-24T22:01:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=b636250e211198210ab996671bccc2983300c6f5'/>
<id>urn:sha1:b636250e211198210ab996671bccc2983300c6f5</id>
<content type='text'>
Many tools open a file descriptor, close it a the end and have some
form of error path in between that jumps to the end.

In some cases, if opening the file fails the error path is taken and
the utility ends up closing one or more invalid file descriptors. It's
technically not a real issue but something that pretty much any static
analysis tool barks at.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Remove unused variables and functions</title>
<updated>2017-06-28T08:27:35+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2017-06-22T11:41:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=e511691315f6704961a0c8e3a9725f1a589a5c11'/>
<id>urn:sha1:e511691315f6704961a0c8e3a9725f1a589a5c11</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>nandwrite: Add --skip-bad-blocks-to-start option</title>
<updated>2017-01-18T13:42:10+00:00</updated>
<author>
<name>Mike Crowe</name>
<email>mac@mcrowe.com</email>
</author>
<published>2017-01-17T11:54:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=2fc8058291e07f6ec143179db377a7d53f6dfa04'/>
<id>urn:sha1:2fc8058291e07f6ec143179db377a7d53f6dfa04</id>
<content type='text'>
The --skip-bad-blocks-to-start option will increase the seek offset by the
size of each bad block encountered between the start of the partition and
the specified start address.

This can be useful when writing part way through a partition that will be
read using a simple bad-block-skipping algorithm.

Signed-off-by: Mike Crowe &lt;mac@mcrowe.com&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>nandwrite: fix/cleanup bad block skipping</title>
<updated>2017-01-12T10:02:19+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2017-01-11T13:02:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=6df83fd628ece2a44da325951bbfc5c33e3c6866'/>
<id>urn:sha1:6df83fd628ece2a44da325951bbfc5c33e3c6866</id>
<content type='text'>
JFFS2 supports clustering erase blocks to virtual erase blocks.
nandwrite supports this, but previously mixed up virtual and
physical erase block numbers when checking for bad blocks.

This patch adds a function for checking if a virtual erase block
is bad and replaces the broken mtd_is_bad loop.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>nandwrite: replace erase loop with mtd_erase_multi</title>
<updated>2017-01-12T10:02:19+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2017-01-11T10:53:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=7b8981af83b2c6decad32673111dce8d416dbb2e'/>
<id>urn:sha1:7b8981af83b2c6decad32673111dce8d416dbb2e</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>nandwrite: add stricter sanity checking for blockalign</title>
<updated>2017-01-12T10:02:18+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2017-01-11T10:45:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=dffaa1d4d1cfabdf325967dd9766adde7320e05e'/>
<id>urn:sha1:dffaa1d4d1cfabdf325967dd9766adde7320e05e</id>
<content type='text'>
This patch makes sure that a virtual erase block is always
composed of a postivie number of erase blocks (i.e. 1 or more)
and enforces the block alignment to be a power of two as
suggested by the help text and assumed throughout the program.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>nandwrite: Factor out buffer checking code</title>
<updated>2016-12-09T08:06:45+00:00</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2016-12-09T01:47:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=f5b47ef5112326b06fd875982379769c55a71703'/>
<id>urn:sha1:f5b47ef5112326b06fd875982379769c55a71703</id>
<content type='text'>
Pull the buffer content checking code into separate function and
simplify the code invoking it slightly.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Reviewed-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>nandwrite: add skip-all-ff-pages-option</title>
<updated>2016-12-06T13:06:56+00:00</updated>
<author>
<name>Kees Trommel</name>
<email>ctrommel@linvm302.aimsys.nl</email>
</author>
<published>2016-12-06T08:21:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=15c21334b201dc54870cfd3e9697307c95f7e4dc'/>
<id>urn:sha1:15c21334b201dc54870cfd3e9697307c95f7e4dc</id>
<content type='text'>
Signed-off-by: Kees Trommel &lt;ctrommel@linvm302.aimsys.nl&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Unify version string printing</title>
<updated>2016-11-17T10:36:55+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2016-07-19T13:06:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=7dd42c510dc8ab10f52dcc2d20dc8af412be0744'/>
<id>urn:sha1:7dd42c510dc8ab10f52dcc2d20dc8af412be0744</id>
<content type='text'>
When a program does sophisticated enough command line processing
(i.e. getopt), make sure it responds to -V and --version.

When a program prints a version string, make sure it uses the
common_print_version macro to print out its name, that it is part
of mtd-utils and the mtd-utils version from the build system in a
fashion similar to common program packages like the GNU coreutils.

When a program responds to -V/--version or -h/--help, make sure it
reports success exit status.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
</content>
</entry>
</feed>
