<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtd-utils.git/tests, 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-05-27T12:55:08+00:00</updated>
<entry>
<title>fs-tests: integck: add some more error messages</title>
<updated>2011-05-27T12:55:08+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-05-26T13:04:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=8ed2f6b8bf6465197230b196f013b9cae1308ca8'/>
<id>urn:sha1:8ed2f6b8bf6465197230b196f013b9cae1308ca8</id>
<content type='text'>
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>fs-tests: integck: print error message on error</title>
<updated>2011-05-27T12:55:08+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-05-26T11:58:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=c0f504fec29666a1b7e4e26fb22bdd72ca561185'/>
<id>urn:sha1:c0f504fec29666a1b7e4e26fb22bdd72ca561185</id>
<content type='text'>
Currently pcv macro print the error message only if we are not doing power cut
testing or if we have -v flag. But if we run without -v and an error happen
and the error code is not EROFS/EIO, pcv() does not print anything. This patch
makes it print the error message in that case as well.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>fs-tests: integck: close files after creation</title>
<updated>2011-05-27T12:55:08+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-05-26T10:43:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=a6c05d9a6033f04ded278e29b71c46a98efd6bf3'/>
<id>urn:sha1:a6c05d9a6033f04ded278e29b71c46a98efd6bf3</id>
<content type='text'>
The 'file_new()' function should create a file but should not keep it
open. There is a different path to open files and keep them open. This
patch makes 'file_new()' close newly created files.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>fs-tests: integck: make directory checking work</title>
<updated>2011-05-27T12:55:07+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-05-25T15:22:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=80a3b730e9b1044d689997e8d68e3b6acb71c7a3'/>
<id>urn:sha1:80a3b730e9b1044d689997e8d68e3b6acb71c7a3</id>
<content type='text'>
This patch makes the directory checking in case of power cut emulation
actually work. There were many bugs. Basically, we cannot rely on anything
unless the directory is marked as clean.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>fs-tests: integck: add verbose reporting</title>
<updated>2011-05-27T12:55:07+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-05-25T14:27:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=acd00a418ef8203fe34809fdd8891dbc5271512c'/>
<id>urn:sha1:acd00a418ef8203fe34809fdd8891dbc5271512c</id>
<content type='text'>
Make -v switch control verbose integck output.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>fs-tests: integck: always check clean data</title>
<updated>2011-05-27T12:55:07+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-05-24T14:46:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=5cb8ec4dc6e1b211ed21d107321380a735897017'/>
<id>urn:sha1:5cb8ec4dc6e1b211ed21d107321380a735897017</id>
<content type='text'>
Check the clean data after every emulated power cut, not only when
'create_test_data()'/'update_test_data()' succeed. This required some minor
re-work.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>fs-tests: integck: introduce a helper function for dir sync</title>
<updated>2011-05-27T12:55:07+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-05-24T13:33:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=d1921953032bfd8dc2750fbba7951abb25badd2c'/>
<id>urn:sha1:d1921953032bfd8dc2750fbba7951abb25badd2c</id>
<content type='text'>
Add a helper 'sync_directory()' function to synchronize directories.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>fs-tests: integck: print name of directory which we cannot open</title>
<updated>2011-05-27T12:55:06+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-05-24T13:31:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=ec5c7808c1f920d10f4a6a3c495679b7a7213df9'/>
<id>urn:sha1:ec5c7808c1f920d10f4a6a3c495679b7a7213df9</id>
<content type='text'>
In 'dir_check()' print name of the directory if we fail to open it.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>fs-tests: integck: EIO can also be return in power-cut testing</title>
<updated>2011-05-27T12:55:06+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-05-23T11:30:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=f6f1cd4e2dfa45705dd8179dd332869d0e7e99b8'/>
<id>urn:sha1:f6f1cd4e2dfa45705dd8179dd332869d0e7e99b8</id>
<content type='text'>
Currently when we are doing UBIFS power cut emulation testing we assume that
EROFS is returned in case of an emulated power cut event. However, this is
not true and sometimes Linux returns EIO to user-space instead. Namely, this
happens when we are waiting for write-back to finish. Here is a call trace
form kernel 2.6.39-rc7:

Call Trace:
 [&lt;ffffffff810aaa77&gt;] filemap_write_and_wait_range+0x78/0xb1
 [&lt;ffffffff8110f34d&gt;] vfs_fsync_range+0x38/0xd3
 [&lt;ffffffff8110f42b&gt;] generic_write_sync+0x43/0x65
 [&lt;ffffffff810ab0c9&gt;] generic_file_aio_write+0xaa/0xf2
 [&lt;ffffffffa02224c9&gt;] ubifs_aio_write+0x13a/0x1a1 [ubifs]
 [&lt;ffffffff810ed71f&gt;] do_sync_write+0xcb/0x141
 [&lt;ffffffff810ee016&gt;] vfs_write+0xb0/0x150
 [&lt;ffffffff810ee175&gt;] sys_write+0x48/0x72
 [&lt;ffffffff813e0692&gt;] system_call_fastpath+0x16/0x1b

'filemap_fdatawait_range()' returns hard-coded -EIO if a page write-back
happens with whatever error code.

Thus, this patch teaches integck to handle EIO when doing power cut emulation
testing.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>fs-tests: integck: implement MTD reattaching</title>
<updated>2011-05-27T12:55:06+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2011-05-20T15:27:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=fdfd2889ad3e59444275e063ada5247727cb079d'/>
<id>urn:sha1:fdfd2889ad3e59444275e063ada5247727cb079d</id>
<content type='text'>
This patch adds -m &lt;mtdnum&gt; option to integck and teaches integck to re-attach
the MTD device to UBI in case of an emulated power cut event. This is needed
for the new UBI power cut and unstable bits emulation infrastructure: when UBI
emulates a power cut the only way to recover form this is to re-attach the MTD
device.

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