<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtd-utils.git, branch v1.4.4</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.4</id>
<link rel='self' href='https://git.infraroot.at/mtd-utils.git/atom?h=v1.4.4'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/'/>
<updated>2011-04-01T16:31:43+00:00</updated>
<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>fs-tests: integck: improve re-mounting test coverage</title>
<updated>2011-03-24T17:25:12+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-03-24T13:43:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=82869c99a0d0a948fa095c2e04cf01172f6338f3'/>
<id>urn:sha1:82869c99a0d0a948fa095c2e04cf01172f6338f3</id>
<content type='text'>
The integck tests re-mounts the file-system from time to time
and checks the integrity afterwords. And it re-mounts always
the same-way: unmount and then mount R/W back. However, it is
better to do it differently some times, e.g.:

* re-mount R/O then re-mount R/W
* unmount then mount R/W
* both of the above
* unmount, mount R/O, then re-mount R/W
* etc.

This will give better test coverage. This patch does exactly
that by improving the 'tests_remount()' function.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>fs-tests: perf: fix compilation warning</title>
<updated>2011-03-24T11:32:44+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-03-24T11:32:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=73d42dd57f6a6f246101928d7c7403058a6627a4'/>
<id>urn:sha1:73d42dd57f6a6f246101928d7c7403058a6627a4</id>
<content type='text'>
Fix the following compilation warning:
perf.c: In function ‘perf’:
perf.c:144: warning: format ‘%lld’ expects type ‘long long int’, but argument 2 has type ‘int64_t’

by adding a (long long int) cast.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>fs-tests: test_1: fix compilation warnings</title>
<updated>2011-03-24T09:10:47+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-03-24T08:19:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=1895b7b9eacd27112fd1fbeb7d10e67ffeae5041'/>
<id>urn:sha1:1895b7b9eacd27112fd1fbeb7d10e67ffeae5041</id>
<content type='text'>
Fix the following compilation warnings:
test_1.c: In function ‘test_1’:
test_1.c:67:4: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’
test_1.c:88:3: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’

The fix is to cast the argument with (unsigned long long).

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>nanddump: fail if -s parameter is unaligned</title>
<updated>2011-03-18T11:38:02+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-03-18T11:38:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=6022deaa5b3b46926757d90fedb8835718150763'/>
<id>urn:sha1:6022deaa5b3b46926757d90fedb8835718150763</id>
<content type='text'>
Implement the feature which we planned long time ago - make nanddump
fail if the -s parameter is not NAND page-aligned. Also bump nanddump
version.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>mkfs.ubifs: deprecate squash-rino-perm options</title>
<updated>2011-03-18T11:34:54+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-03-18T11:31:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=5efcdf7a2bfafd01e5c6d53dd46335f30704b2ad'/>
<id>urn:sha1:5efcdf7a2bfafd01e5c6d53dd46335f30704b2ad</id>
<content type='text'>
As we have planned, make --nosquash-rino-perm option to be the
default. Deprecate both options at the same time and print a
warning if they are used. Later we can remove them

Also, bump mkfs.ubifs version number.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>flash_erase: increas version number</title>
<updated>2011-03-18T10:54:16+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-03-18T10:54:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=0a63610bbcdfa2c75d0637e542d1ab67704e34de'/>
<id>urn:sha1:0a63610bbcdfa2c75d0637e542d1ab67704e34de</id>
<content type='text'>
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>flash_erase: start position should be in bytes</title>
<updated>2011-03-18T10:52:44+00:00</updated>
<author>
<name>Peter Korsgaard</name>
<email>jacmet@sunsite.dk</email>
</author>
<published>2011-03-18T10:21:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=556c2a14898777cd25aa75601ca48169e4155698'/>
<id>urn:sha1:556c2a14898777cd25aa75601ca48169e4155698</id>
<content type='text'>
Commit a8801d8 (unify flash_erase and flash_eraseall) changed the
flash_erase interface in a backwards incompatible way. Before that
commit start position was given in bytes, and now it must be provided
in blocks.

While I agree the new interface is nicer, we shouldn't break the
interface. I have scripts that expect the old behaviour, and I'm
most likely not alone, so change the interface back to the old
way.

Signed-off-by: Peter Korsgaard &lt;jacmet@sunsite.dk&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>nandwrite: add only write oob option</title>
<updated>2011-03-08T12:09:30+00:00</updated>
<author>
<name>Lei Wen</name>
<email>leiwen@marvell.com</email>
</author>
<published>2011-03-07T09:44:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=a74619f416f89127138eb7e8168a0b67fb419c64'/>
<id>urn:sha1:a74619f416f89127138eb7e8168a0b67fb419c64</id>
<content type='text'>
Write only oob part goes different path in nand_base.c, it is better
to have userland program so that we could easy debug this path when
the write only oob fail like the mtd_oobtest in mtd_test suit.

Signed-off-by: Lei Wen &lt;leiwen@marvell.com&gt;
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>
</feed>
