<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ldd3/sbull, branch master</title>
<subtitle>ldd3 code examples</subtitle>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/'/>
<entry>
<title>Don't use absolute path for commands in load/unload scripts</title>
<updated>2018-02-25T21:25:37+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>javier@dowhile0.org</email>
</author>
<published>2018-02-25T21:25:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=e3c38f894f146aad18e14196ca39e679f35bf19f'/>
<id>e3c38f894f146aad18e14196ca39e679f35bf19f</id>
<content type='text'>
Just let the shell lookup from the user's $PATH since some tools may not
be installed in the absolute path used in the scripts.

Signed-off-by: Javier Martinez Canillas &lt;javier@dowhile0.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Just let the shell lookup from the user's $PATH since some tools may not
be installed in the absolute path used in the scripts.

Signed-off-by: Javier Martinez Canillas &lt;javier@dowhile0.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix a memory mapping bug in sbull.c</title>
<updated>2013-10-29T02:22:07+00:00</updated>
<author>
<name>Hongliang TIAN</name>
<email>tatetian@gmail.com</email>
</author>
<published>2013-10-29T02:22:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=ba164b0fe0c0a8af8c5a25bf02d2f68b1fad810d'/>
<id>ba164b0fe0c0a8af8c5a25bf02d2f68b1fad810d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull/sbull.c: block_device_operations-&gt;release() should return void</title>
<updated>2013-09-28T11:35:44+00:00</updated>
<author>
<name>Luis Ortega Perez de Villar</name>
<email>luiorpe1@upv.es</email>
</author>
<published>2013-09-17T15:45:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=f59a47343b674c42429850665142d5585d9cc713'/>
<id>f59a47343b674c42429850665142d5585d9cc713</id>
<content type='text'>
The return type of block_device_operations-&gt;release() changed from
int to void in commit db2a144bedd58b3dcf19950c2f476c58c9f39d18

Fixes the following compiler warning:

sbull/sbull.c:313:2: warning:
        initialization from incompatible pointer type [enabled by default]
sbull/sbull.c:313:2: warning:
        (near initialization for ‘sbull_ops.release’) [enabled by default]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The return type of block_device_operations-&gt;release() changed from
int to void in commit db2a144bedd58b3dcf19950c2f476c58c9f39d18

Fixes the following compiler warning:

sbull/sbull.c:313:2: warning:
        initialization from incompatible pointer type [enabled by default]
sbull/sbull.c:313:2: warning:
        (near initialization for ‘sbull_ops.release’) [enabled by default]
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull/sbull.c: sbull_make_request() should return void</title>
<updated>2013-09-28T11:35:44+00:00</updated>
<author>
<name>Luis Ortega Perez de Villar</name>
<email>luiorpe1@upv.es</email>
</author>
<published>2013-09-17T15:37:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=75a5851bdf495ac3fa84c3d42b2718943ade12d1'/>
<id>75a5851bdf495ac3fa84c3d42b2718943ade12d1</id>
<content type='text'>
sbull/sbull.c:194:2: warning:
        ‘return’ with a value, in function returning void [enabled by default]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
sbull/sbull.c:194:2: warning:
        ‘return’ with a value, in function returning void [enabled by default]
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull: Update sbull_make_request function to make_request_fn new signature</title>
<updated>2012-05-06T03:05:43+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>javier@dowhile0.org</email>
</author>
<published>2012-05-06T03:05:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=5759bf4dcc6e4155447bcd40ddebccee50cd3fa5'/>
<id>5759bf4dcc6e4155447bcd40ddebccee50cd3fa5</id>
<content type='text'>
Signed-off-by: Javier Martinez Canillas &lt;javier@dowhile0.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Javier Martinez Canillas &lt;javier@dowhile0.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull: Use blk_fetch_request instead blk_peek_request to dequeue requests</title>
<updated>2011-01-08T00:07:34+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>martinez.javier@gmail.com</email>
</author>
<published>2011-01-06T06:43:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=26e967f1a1dc04f6e234f617c5ce5e895c431bc2'/>
<id>26e967f1a1dc04f6e234f617c5ce5e895c431bc2</id>
<content type='text'>
The block layer request API changes make a requirement for block drivers
to dequeue requests before signal its completition.

Commit 1dfd4ab138fc9f9cad869e6110022c7cfd5544d1 changed sbull to use
the new block layer API. But the patch only renamed the functions while
keeping the old driver semantics. It used blk_peek_request() that does the
same that elv_next_request() did.

Remove the request from the queue before is not only a recomendation
but a true requirement. Attempting to complete a request that remains
in the queue make the kernel oops. So the last commit introduced a Bug.

This patch uses blk_fetch_request() instead of blk_peek_request().
blk_fetch_request() not only returns the request in the head of the
queue but also removes the request from the queue so a latter
signaling of the request completition doesn't hang the system.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The block layer request API changes make a requirement for block drivers
to dequeue requests before signal its completition.

Commit 1dfd4ab138fc9f9cad869e6110022c7cfd5544d1 changed sbull to use
the new block layer API. But the patch only renamed the functions while
keeping the old driver semantics. It used blk_peek_request() that does the
same that elv_next_request() did.

Remove the request from the queue before is not only a recomendation
but a true requirement. Attempting to complete a request that remains
in the queue make the kernel oops. So the last commit introduced a Bug.

This patch uses blk_fetch_request() instead of blk_peek_request().
blk_fetch_request() not only returns the request in the head of the
queue but also removes the request from the queue so a latter
signaling of the request completition doesn't hang the system.
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull: Remove blk_fs_request wrapper</title>
<updated>2011-01-08T00:04:33+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>martinez.javier@gmail.com</email>
</author>
<published>2011-01-03T15:23:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=383b607f7fff26ec216765b20b1125897a3f360a'/>
<id>383b607f7fff26ec216765b20b1125897a3f360a</id>
<content type='text'>
This wrapper doesn't exist anymore in current kernel (2.6.37) so
so doesn't make any sense to know its existance.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This wrapper doesn't exist anymore in current kernel (2.6.37) so
so doesn't make any sense to know its existance.
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull: blk_put_queue() is not an exported symbol anymore. Use kobject_put(q-&gt;kobj) instead</title>
<updated>2011-01-07T23:50:46+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>martinez.javier@gmail.com</email>
</author>
<published>2011-01-04T23:18:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=2271ac7ec52199572c21c7469c549942b0aed7a2'/>
<id>2271ac7ec52199572c21c7469c549942b0aed7a2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull: Change script from sh to bash</title>
<updated>2010-12-29T04:13:59+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>martinez.javier@gmail.com</email>
</author>
<published>2010-12-29T04:13:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=60fe425a271707bb3e4723d67d790886e159f350'/>
<id>60fe425a271707bb3e4723d67d790886e159f350</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull: Update struct block_device_operations handlers signatures</title>
<updated>2010-12-10T00:04:09+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>martinez.javier@gmail.com</email>
</author>
<published>2010-12-10T00:04:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=55a7a2ea6f8b520c3008298694d29f62ad8a6e43'/>
<id>55a7a2ea6f8b520c3008298694d29f62ad8a6e43</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
