<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/md/dm-dust.c, branch linux-5.14.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.14.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.14.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-02-03T15:10:04Z</updated>
<entry>
<title>dm dust: remove h from printk format specifier</title>
<updated>2021-02-03T15:10:04Z</updated>
<author>
<name>Tom Rix</name>
</author>
<published>2020-12-15T21:31:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=892c7a77f6c821d3ecaf8f5e45cc3ca372f653c3'/>
<id>urn:sha1:892c7a77f6c821d3ecaf8f5e45cc3ca372f653c3</id>
<content type='text'>
See Documentation/core-api/printk-formats.rst.

commit cbacb5ab0aa0 ("docs: printk-formats: Stop encouraging use of unnecessary %h[xudi] and %hh[xudi]")

Standard integer promotion is already done and %hx and %hhx is useless
so do not encourage the use of %hh[xudi] or %h[xudi].

Signed-off-by: Tom Rix &lt;trix@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm dust: add interface to list all badblocks</title>
<updated>2020-07-20T15:17:41Z</updated>
<author>
<name>yangerkun</name>
</author>
<published>2020-06-19T21:12:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0c248ea27fc88cf8a3035ba0ed75b210be9abf80'/>
<id>urn:sha1:0c248ea27fc88cf8a3035ba0ed75b210be9abf80</id>
<content type='text'>
This interface may help anyone who want to know all badblocks without
querying for each block.

[Bryan: DMEMIT message if no blocks are in the bad block list.]

Signed-off-by: yangerkun &lt;yangerkun@huawei.com&gt;
Signed-off-by: Bryan Gurney &lt;bgurney@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm dust: report some message results directly back to user</title>
<updated>2020-07-20T15:17:34Z</updated>
<author>
<name>yangerkun</name>
</author>
<published>2020-06-19T21:10:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4f7f590b152444c1403ece9eeeddd1e8b22ba04e'/>
<id>urn:sha1:4f7f590b152444c1403ece9eeeddd1e8b22ba04e</id>
<content type='text'>
Some messages (queryblock, countbadblocks, removebadblock) are best
reported directly to user directly. Do so with DMEMIT.

[Bryan: maintain __func__ output in DMEMIT messages]

Signed-off-by: yangerkun &lt;yangerkun@huawei.com&gt;
Signed-off-by: Bryan Gurney &lt;bgurney@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm dust: change ret to r in dust_map_write</title>
<updated>2020-01-07T16:43:36Z</updated>
<author>
<name>Bryan Gurney</name>
</author>
<published>2019-12-05T22:08:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=88e7cafdcae8bc6354804c685379784c55e276ca'/>
<id>urn:sha1:88e7cafdcae8bc6354804c685379784c55e276ca</id>
<content type='text'>
In the dust_map_write() function, change the return code variable
"ret" to "r", to match the convention of the other device-mapper
targets.

Signed-off-by: Bryan Gurney &lt;bgurney@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm dust: add limited write failure mode</title>
<updated>2019-11-05T20:25:34Z</updated>
<author>
<name>Bryan Gurney</name>
</author>
<published>2019-10-22T20:46:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=72d7df4c8079306e7fbd6243bf951461ed647a47'/>
<id>urn:sha1:72d7df4c8079306e7fbd6243bf951461ed647a47</id>
<content type='text'>
Add a limited write failure mode which allows a write to a block to fail
a specified amount of times, prior to remapping.  The "addbadblock"
message is extended to allow specifying the limited number of times a
write fails.

Example: add bad block on block 60, with 5 write failures:
  dmsetup message 0 dust1 addbadblock 60 5

The write failure counter will be printed for newly added bad blocks.

Signed-off-by: Bryan Gurney &lt;bgurney@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm dust: change ret to r in dust_map_read and dust_map</title>
<updated>2019-11-05T19:56:08Z</updated>
<author>
<name>Bryan Gurney</name>
</author>
<published>2019-10-04T15:42:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cc7a7fb3b689996d35404080dde09de03fc1d09b'/>
<id>urn:sha1:cc7a7fb3b689996d35404080dde09de03fc1d09b</id>
<content type='text'>
In the dust_map_read() and dust_map() functions, change the
return code variable "ret" to "r", to match the convention of the
other device-mapper targets.

Signed-off-by: Bryan Gurney &lt;bgurney@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm dust: change result vars to r</title>
<updated>2019-11-05T19:55:31Z</updated>
<author>
<name>Bryan Gurney</name>
</author>
<published>2019-10-04T15:42:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6ec1be501500787264ce62b8786ed7723bcd93f5'/>
<id>urn:sha1:6ec1be501500787264ce62b8786ed7723bcd93f5</id>
<content type='text'>
Change the "result" variables to "r" in dust_status() and
dust_message().

Signed-off-by: Bryan Gurney &lt;bgurney@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm dust: use dust block size for badblocklist index</title>
<updated>2019-08-21T15:27:17Z</updated>
<author>
<name>Bryan Gurney</name>
</author>
<published>2019-08-16T14:09:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=08c04c84a5cde3af9baac0645a7496d6dcd76822'/>
<id>urn:sha1:08c04c84a5cde3af9baac0645a7496d6dcd76822</id>
<content type='text'>
Change the "frontend" dust_remove_block, dust_add_block, and
dust_query_block functions to store the "dust block number", instead
of the sector number corresponding to the "dust block number".

For the "backend" functions dust_map_read and dust_map_write,
right-shift by sect_per_block_shift.  This fixes the inability to
emulate failure beyond the first sector of each "dust block" (for
devices with a "dust block size" larger than 512 bytes).

Fixes: e4f3fabd67480bf ("dm: add dust target")
Cc: stable@vger.kernel.org
Signed-off-by: Bryan Gurney &lt;bgurney@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm dust: Make dm_dust_init and dm_dust_exit static</title>
<updated>2019-05-07T20:05:07Z</updated>
<author>
<name>YueHaibing</name>
</author>
<published>2019-05-04T10:30:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9ccce5a0fb703bbae425d2f38513e30f62eee282'/>
<id>urn:sha1:9ccce5a0fb703bbae425d2f38513e30f62eee282</id>
<content type='text'>
Fix sparse warnings:

drivers/md/dm-dust.c:495:12: warning: symbol 'dm_dust_init' was not declared. Should it be static?
drivers/md/dm-dust.c:505:13: warning: symbol 'dm_dust_exit' was not declared. Should it be static?

Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: YueHaibing &lt;yuehaibing@huawei.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm dust: remove redundant unsigned comparison to less than zero</title>
<updated>2019-05-07T20:05:06Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2019-05-01T12:57:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cacddeab563be5850ec12ba6a1396e120f94a529'/>
<id>urn:sha1:cacddeab563be5850ec12ba6a1396e120f94a529</id>
<content type='text'>
Variable block is an unsigned long long hence the less than zero
comparison is always false, hence it is redundant and can be removed.

Addresses-Coverity: ("Unsigned compared against 0")
Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Reviewed-by: Bryan Gurney &lt;bgurney@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
</content>
</entry>
</feed>
