<feed xmlns='http://www.w3.org/2005/Atom'>
<title>drakx/perl-install/partition_table, branch 17.72</title>
<subtitle>Mageia Installer and base platform for many utilities</subtitle>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/'/>
<entry>
<title>Always tell the kernel about partition table changes when running the classic installer (mga#20074).</title>
<updated>2017-02-25T11:47:26+00:00</updated>
<author>
<name>Martin Whitaker</name>
<email>mageia@martin-whitaker.me.uk</email>
</author>
<published>2017-02-20T21:42:27+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=37a48c57d0c295e29049d23d1d37a800e1ee24af'/>
<id>37a48c57d0c295e29049d23d1d37a800e1ee24af</id>
<content type='text'>
The automatic rescan of the partition table is triggered by udevd. The
udev rule that causes this is not present on the cut-down system that
runs the classic installer.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The automatic rescan of the partition table is triggered by udevd. The
udev rule that causes this is not present on the cut-down system that
runs the classic installer.
</pre>
</div>
</content>
</entry>
<entry>
<title>Preserve DOS "Empty" partitions instead of treating them as free space (mga#20074).</title>
<updated>2017-02-25T11:31:16+00:00</updated>
<author>
<name>Martin Whitaker</name>
<email>mageia@martin-whitaker.me.uk</email>
</author>
<published>2017-01-21T20:23:18+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=0d79e34dad3062575746f97c613f0e643a2d8b29'/>
<id>0d79e34dad3062575746f97c613f0e643a2d8b29</id>
<content type='text'>
To minimise the changes this close to mga6 release (and until we fix
the bug in partition auto-allocation that mistakenly creates BIOS boot
partitions non-GPT disks), reuse the BIOS_GRUB flag for flagging Empty
partitions, as the real partition ID (0x00) is used to flag free space.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To minimise the changes this close to mga6 release (and until we fix
the bug in partition auto-allocation that mistakenly creates BIOS boot
partitions non-GPT disks), reuse the BIOS_GRUB flag for flagging Empty
partitions, as the real partition ID (0x00) is used to flag free space.
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't tell the kernel about partition table changes when it rescans them automatically (mga#20074).</title>
<updated>2017-02-25T11:31:03+00:00</updated>
<author>
<name>Martin Whitaker</name>
<email>mageia@martin-whitaker.me.uk</email>
</author>
<published>2017-01-21T20:00:20+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=6f0880e11d1f83ca239c823cece00fc7d034dddb'/>
<id>6f0880e11d1f83ca239c823cece00fc7d034dddb</id>
<content type='text'>
When no partitions on a DOS-partitioned disk are mounted, the kernel
automatically rescans the partition table when it is written to disk.
We shouldn't then try to update the kernel's view of the partition
table, as the list of deltas we have recorded is relative to the
previous state of the partition table, not the newly rescanned state.

The behaviour for other partition table types is unchanged.

v2 (tvignaud): just make base class assume the kernel doesn't reread, only mbr
subclass overrides need_to_tell_kernel() in order to be smarter
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When no partitions on a DOS-partitioned disk are mounted, the kernel
automatically rescans the partition table when it is written to disk.
We shouldn't then try to update the kernel's view of the partition
table, as the list of deltas we have recorded is relative to the
previous state of the partition table, not the newly rescanned state.

The behaviour for other partition table types is unchanged.

v2 (tvignaud): just make base class assume the kernel doesn't reread, only mbr
subclass overrides need_to_tell_kernel() in order to be smarter
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure the kernel doesn't rescan a partially written partition table (mga#20074).</title>
<updated>2017-02-25T11:30:56+00:00</updated>
<author>
<name>Martin Whitaker</name>
<email>mageia@martin-whitaker.me.uk</email>
</author>
<published>2017-01-21T19:38:55+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=a5473711818b2519552561b33c3f181ab1bbfde6'/>
<id>a5473711818b2519552561b33c3f181ab1bbfde6</id>
<content type='text'>
When no partitions on a DOS-partitioned disk are mounted, the kernel
automatically rescans the partition table when the file handle to the
raw device is released. Currently the code opens and closes the raw
device when writing the primary partition table and when writing each
extended partition table segment. As the extended partition table
segments form a linked list, this allows the kernel to get in and
rescan the table when the list is not in a coherent state. This patch
changes the code to open the raw device before writing the primary
partition table and to close it only after writing the last extended
partition table segment.

The behaviour for other partition table types is unchanged.

v2 (tvignaud): simplify by moving copies of noop funcs into the base class
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When no partitions on a DOS-partitioned disk are mounted, the kernel
automatically rescans the partition table when the file handle to the
raw device is released. Currently the code opens and closes the raw
device when writing the primary partition table and when writing each
extended partition table segment. As the extended partition table
segments form a linked list, this allows the kernel to get in and
rescan the table when the list is not in a coherent state. This patch
changes the code to open the raw device before writing the primary
partition table and to close it only after writing the last extended
partition table segment.

The behaviour for other partition table types is unchanged.

v2 (tvignaud): simplify by moving copies of noop funcs into the base class
</pre>
</div>
</content>
</entry>
<entry>
<title>first usable sector is LBA34 for GPT</title>
<updated>2016-07-31T15:30:41+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2016-07-27T15:20:33+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=fa5d71d34b1193fea0e290bb0586d0ff02747366'/>
<id>fa5d71d34b1193fea0e290bb0586d0ff02747366</id>
<content type='text'>
same rationale as in commit 767048570e8c44061cb0d6faf689698d3313870c for
mga#18666

this wasn't an issue as we later round partition on 1MB boundary but
it's still cleaner/safer...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
same rationale as in commit 767048570e8c44061cb0d6faf689698d3313870c for
mga#18666

this wasn't an issue as we later round partition on 1MB boundary but
it's still cleaner/safer...
</pre>
</div>
</content>
</entry>
<entry>
<title>sync libparted view with diskdrake one</title>
<updated>2016-07-12T12:14:00+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2016-07-08T09:44:16+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=532fd1d60df306e204bae79c5158ca2302739966'/>
<id>532fd1d60df306e204bae79c5158ca2302739966</id>
<content type='text'>
in order to prevent overlapping errors when adding partitions:
(b/c libparted doesn't know that diskdrake already removed the
partitions in its memory view)
"failed to add partition #1 on /dev/vda"
"Error: Can't have overlapping partitions."
"add_partition failed"
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
in order to prevent overlapping errors when adding partitions:
(b/c libparted doesn't know that diskdrake already removed the
partitions in its memory view)
"failed to add partition #1 on /dev/vda"
"Error: Can't have overlapping partitions."
"add_partition failed"
</pre>
</div>
</content>
</entry>
<entry>
<title>(initialize) simplify</title>
<updated>2016-07-08T09:48:12+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2016-07-08T03:43:56+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=eb15e0ef31edcdff2ad72a39ecdcb706bd400e94'/>
<id>eb15e0ef31edcdff2ad72a39ecdcb706bd400e94</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>prevent GPT partition to use the 33 last sectors</title>
<updated>2016-07-05T14:41:48+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2016-07-05T14:25:28+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=767048570e8c44061cb0d6faf689698d3313870c'/>
<id>767048570e8c44061cb0d6faf689698d3313870c</id>
<content type='text'>
Resolves: mga#18666, mga#17796
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Resolves: mga#18666, mga#17796
</pre>
</div>
</content>
</entry>
<entry>
<title>kill big unused hash of GUIDs</title>
<updated>2016-07-05T14:40:27+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2016-07-05T13:08:40+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=e83234df045ad22fc2f166616b74ae83bcf70b09'/>
<id>e83234df045ad22fc2f166616b74ae83bcf70b09</id>
<content type='text'>
basically reverting: commit 36c2fc004bf445ff784bde423ba7aa27885539f8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
basically reverting: commit 36c2fc004bf445ff784bde423ba7aa27885539f8
</pre>
</div>
</content>
</entry>
<entry>
<title>kill a bogus FIXME note</title>
<updated>2016-06-30T14:26:20+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2016-06-30T09:20:15+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=4e8b78b2803239a4e5e2bf8210fc3c97ca6225de'/>
<id>4e8b78b2803239a4e5e2bf8210fc3c97ca6225de</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
