<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/util-linux.git/libfdisk/src, branch master</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>libfdisk: fix fdisk_check_collisions return code</title>
<updated>2023-05-11T08:37:54+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2023-05-11T08:37:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=0484ca01c5ab83d500ba37daf67bc17213e39363'/>
<id>0484ca01c5ab83d500ba37daf67bc17213e39363</id>
<content type='text'>
The return code (&gt;0) is nowhere in the library used, but let's be
compatible with function comment ;-)

Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The return code (&gt;0) is nowhere in the library used, but let's be
compatible with function comment ;-)

Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>libfdisk: fix wipe-partition feature</title>
<updated>2023-05-11T07:44:37+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2023-05-11T07:44:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=9afcc8a67deddea5cc5cef4911c7a5b769cf895c'/>
<id>9afcc8a67deddea5cc5cef4911c7a5b769cf895c</id>
<content type='text'>
Addresses: https://github.com/util-linux/util-linux/issues/2216
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Addresses: https://github.com/util-linux/util-linux/issues/2216
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>libfdisk: use BLKID_SUBLKS_BADCSUM and BLKID_PARTS_FORCE_GPT</title>
<updated>2023-05-09T11:19:20+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2023-05-09T11:19:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=de75e0cba746895cfa776762efc29a3aa3a2039e'/>
<id>de75e0cba746895cfa776762efc29a3aa3a2039e</id>
<content type='text'>
Let's keep libblkid in more promiscuous mode to detect more possible
signatures.

Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Let's keep libblkid in more promiscuous mode to detect more possible
signatures.

Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>libfdisk: Fix randomly generated GPT UUID's</title>
<updated>2023-03-09T11:15:25+00:00</updated>
<author>
<name>Toomas Losin</name>
<email>tlo@lenrek.net</email>
</author>
<published>2023-03-05T23:57:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=dd405ea745e451fb0cf32e9dedd94d69850fe333'/>
<id>dd405ea745e451fb0cf32e9dedd94d69850fe333</id>
<content type='text'>
Fdisk commands that create random GPT UUID's result in values that are
not UEFI-compliant being written to disk: The "g" command creates a
new GPT whose in-core DiskGUID value is entirely big-endian; the "n"
command creates a GPT partition whose in-core UniquePartitionGUID
value is entirely big-endian.  Those big-endian values are written to
disk by the "w" command rather than the mix of little- and big-endian
spec'd by UEFI.

This was caused by a libfdisk patch in 2017 that was addressing
warnings about "taking address of packed member".  Reading gpt.c finds
two instances of dead code which suggests that perhaps there was some
confusion between a struct and a pointer to a struct.  The intent must
have been to convert the randomly generated big-endian RFC 4122 UUID
values to UEFI's mixed-endian but the confusion(?) resulted in some
dead code and non-conversion of the UUID's.

This patch corrects the breakage while still avoiding "taking address
of packed member" warnings.  The "w" command will once again write
UEFI-compliant values to disk.

Fixes: 92e486f80ef8 ("libfdisk: fix guid usage of packed struct gpt_entry")
Signed-off-by: Toomas Losin &lt;tlo@lenrek.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fdisk commands that create random GPT UUID's result in values that are
not UEFI-compliant being written to disk: The "g" command creates a
new GPT whose in-core DiskGUID value is entirely big-endian; the "n"
command creates a GPT partition whose in-core UniquePartitionGUID
value is entirely big-endian.  Those big-endian values are written to
disk by the "w" command rather than the mix of little- and big-endian
spec'd by UEFI.

This was caused by a libfdisk patch in 2017 that was addressing
warnings about "taking address of packed member".  Reading gpt.c finds
two instances of dead code which suggests that perhaps there was some
confusion between a struct and a pointer to a struct.  The intent must
have been to convert the randomly generated big-endian RFC 4122 UUID
values to UEFI's mixed-endian but the confusion(?) resulted in some
dead code and non-conversion of the UUID's.

This patch corrects the breakage while still avoiding "taking address
of packed member" warnings.  The "w" command will once again write
UEFI-compliant values to disk.

Fixes: 92e486f80ef8 ("libfdisk: fix guid usage of packed struct gpt_entry")
Signed-off-by: Toomas Losin &lt;tlo@lenrek.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>libfdisk: (gpt) remove unnecessary code</title>
<updated>2023-02-08T15:21:32+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2023-02-08T15:21:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=ce2d993bc667f634a8a98503a99249fcc21a9af2'/>
<id>ce2d993bc667f634a8a98503a99249fcc21a9af2</id>
<content type='text'>
The function gpt_sizeof_entries() already checks for limits.

Fixes: https://github.com/util-linux/util-linux/issues/2057
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The function gpt_sizeof_entries() already checks for limits.

Fixes: https://github.com/util-linux/util-linux/issues/2057
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>libfdisk: remove unused variable ct</title>
<updated>2022-12-12T21:07:46+00:00</updated>
<author>
<name>Thomas Weißschuh</name>
<email>thomas@t-8ch.de</email>
</author>
<published>2022-12-12T21:07:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=b047d79f162fb5eb9ba9d66ebf558d88c0267f55'/>
<id>b047d79f162fb5eb9ba9d66ebf558d88c0267f55</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fdisk: make it more obvious that DOS means MBR</title>
<updated>2022-11-10T08:24:23+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2022-11-10T08:24:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=3e8228b22822dd119dee7e680f17ffe9a0b5ec47'/>
<id>3e8228b22822dd119dee7e680f17ffe9a0b5ec47</id>
<content type='text'>
Fixes: https://github.com/util-linux/util-linux/issues/1890
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes: https://github.com/util-linux/util-linux/issues/1890
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>libfdisk: (gpt) don't ignore fsync() errors</title>
<updated>2022-08-11T11:09:05+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2022-08-11T11:09:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=c2ec04d304b0f002307dd6e690906f46822e617d'/>
<id>c2ec04d304b0f002307dd6e690906f46822e617d</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>libfdisk: fix typos</title>
<updated>2022-07-11T18:09:56+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2022-07-11T18:09:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=11ebc3d26e64e766d2a2ec670ca1a4ad4afdc381'/>
<id>11ebc3d26e64e766d2a2ec670ca1a4ad4afdc381</id>
<content type='text'>
Reported-by: Thomas Weißschuh &lt;thomas@t-8ch.de&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: Thomas Weißschuh &lt;thomas@t-8ch.de&gt;
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>libfdisk: make scripts portable between different sector sizes</title>
<updated>2022-07-11T12:02:30+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2022-07-11T12:02:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=16467e474041f9ca4ea8d0f5ac6f0cf1142e0af9'/>
<id>16467e474041f9ca4ea8d0f5ac6f0cf1142e0af9</id>
<content type='text'>
Fixes: https://github.com/util-linux/util-linux/issues/1744
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes: https://github.com/util-linux/util-linux/issues/1744
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
