<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/util-linux.git/disk-utils/blockdev.c, branch baserock/morph</title>
<subtitle>git.kernel.org: pub/scm/utils/util-linux/util-linux.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/'/>
<entry>
<title>blockdev: don't use HDIO_GETGEO</title>
<updated>2014-01-14T11:37:56+00:00</updated>
<author>
<name>Phillip Susi</name>
<email>psusi@ubuntu.com</email>
</author>
<published>2013-11-01T17:37:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=f7541e14c40f291b21016fd4db906fd5755ed87d'/>
<id>f7541e14c40f291b21016fd4db906fd5755ed87d</id>
<content type='text'>
blockdev was still using this depreciated ioctl and that was
causing blockdev --report to fail on loop and nbd devices.
Switch to reading the partition start from sysfs instead.
This also allows it to correctly report &gt; 2^32 sector counts.

[kzak@redhat.com: - check sysfs_init() return,
                  - use uint64_t rather than unsigned long long]

Signed-off-by: Phillip Susi &lt;psusi@ubuntu.com&gt;
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
blockdev was still using this depreciated ioctl and that was
causing blockdev --report to fail on loop and nbd devices.
Switch to reading the partition start from sysfs instead.
This also allows it to correctly report &gt; 2^32 sector counts.

[kzak@redhat.com: - check sysfs_init() return,
                  - use uint64_t rather than unsigned long long]

Signed-off-by: Phillip Susi &lt;psusi@ubuntu.com&gt;
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>blockdev: add note about --setbsz usability</title>
<updated>2013-10-11T09:16:23+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2013-10-11T09:16:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=7ab32ae64d05f018c171ba1525bc337805d84391'/>
<id>7ab32ae64d05f018c171ba1525bc337805d84391</id>
<content type='text'>
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "blockdev: Remove the --setbsz (set blocksize) option which has never worked."</title>
<updated>2013-10-11T09:05:45+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2013-10-11T09:05:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=39d2e7067d7c61e579079a72bbd80e3bce31cfc3'/>
<id>39d2e7067d7c61e579079a72bbd80e3bce31cfc3</id>
<content type='text'>
This reverts commit b1555acc2f709ac4f3b1e6c686a11cadb7b04f72.

It seems that the option is used by kernel guys to test kernel, so
let's keep the option in the blockdev(8) although it's almost useless
in userspace. All we need is to improve docs to make things more
obvious to end users.

Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit b1555acc2f709ac4f3b1e6c686a11cadb7b04f72.

It seems that the option is used by kernel guys to test kernel, so
let's keep the option in the blockdev(8) although it's almost useless
in userspace. All we need is to improve docs to make things more
obvious to end users.

Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>blockdev: Remove the --setbsz (set blocksize) option which has never worked.</title>
<updated>2013-10-08T13:48:00+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2013-10-08T08:54:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=b1555acc2f709ac4f3b1e6c686a11cadb7b04f72'/>
<id>b1555acc2f709ac4f3b1e6c686a11cadb7b04f72</id>
<content type='text'>
This option has never worked.  If you try setting the block size on a
block device, and then read it using --getbsz, you will see that the
block size never changes.

The reason for this is because the block size is specific to the
current file descriptor opening the block device, so the change of
block size only persists for as long as blockdev has the device open,
and is lost once blockdev exits.

Also the block size is not really used anywhere.  Filesystems, for
example, have their own idea of block size and ignore this setting
completely.

(Thanks Masayoshi Mizuma for diagnosing the problem)

Signed-off-by: Richard W.M. Jones &lt;rjones@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This option has never worked.  If you try setting the block size on a
block device, and then read it using --getbsz, you will see that the
block size never changes.

The reason for this is because the block size is specific to the
current file descriptor opening the block device, so the change of
block size only persists for as long as blockdev has the device open,
and is lost once blockdev exits.

Also the block size is not really used anywhere.  Filesystems, for
example, have their own idea of block size and ignore this setting
completely.

(Thanks Masayoshi Mizuma for diagnosing the problem)

Signed-off-by: Richard W.M. Jones &lt;rjones@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>textual: use UTIL_LINUX_VERSION everywhere</title>
<updated>2013-01-25T11:05:26+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2013-01-25T11:05:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=e421313dc253856af67cc267d2b33f856f18b0e3'/>
<id>e421313dc253856af67cc267d2b33f856f18b0e3</id>
<content type='text'>
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>textual: standardize reporting of program name plus package version</title>
<updated>2013-01-25T10:47:29+00:00</updated>
<author>
<name>Benno Schulenberg</name>
<email>bensberg@justemail.net</email>
</author>
<published>2012-02-06T15:37:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=217615e8ed6041fae5e877d76b91895bfad6d96d'/>
<id>217615e8ed6041fae5e877d76b91895bfad6d96d</id>
<content type='text'>
Signed-off-by: Benno Schulenberg &lt;bensberg@justemail.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Benno Schulenberg &lt;bensberg@justemail.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix buffer overrun in some calls to sscanf</title>
<updated>2012-07-09T20:26:27+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2012-07-09T20:26:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=657d9adb71ed50275b1ed2a0d4e966032db5ba97'/>
<id>657d9adb71ed50275b1ed2a0d4e966032db5ba97</id>
<content type='text'>
Reported-by: Sergei Antonov &lt;saproj@gmail.com&gt;
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported-by: Sergei Antonov &lt;saproj@gmail.com&gt;
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>disk-utils: verify writing to streams was successful</title>
<updated>2012-04-04T18:04:39+00:00</updated>
<author>
<name>Sami Kerola</name>
<email>kerolasa@iki.fi</email>
</author>
<published>2012-04-04T18:04:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=45ca68ece78dd5d0f83863e33bfad2cc88fc2d1e'/>
<id>45ca68ece78dd5d0f83863e33bfad2cc88fc2d1e</id>
<content type='text'>
Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>blockdev: make the code more readable for static analysers</title>
<updated>2012-02-02T11:49:13+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2012-02-02T11:49:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=15705de0ed7430b78aa85e56aa6b85033c31aae5'/>
<id>15705de0ed7430b78aa85e56aa6b85033c31aae5</id>
<content type='text'>
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>blockdev: remove non-ANSI function declaration [smatch scan]</title>
<updated>2012-01-17T16:23:01+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2012-01-17T16:23:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=16bd8025616743dd4287bca057428d6432560f90'/>
<id>16bd8025616743dd4287bca057428d6432560f90</id>
<content type='text'>
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
