| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This avoids unnecessary udev events, which in some cases were causing
udevd to trigger a kernel partition table reread, causing the kernel
to get out of sync with drakx.
In order to do so, the libparted bindings are enhanced so that we
manipulate a 'ped_disk' object:
- disk_open() returns such an object
- set_disk_type() is removed
- disk_commit() writes back the partition table and tell the kernel
about it
if we fails to write the partition table, we let
partition_table::write() fire an exceptionc
if we only have succeed in writing the partition table, we let
partition_table::write() try harder (umounting partitions before
trying againt to tell the kernel again)
- need_to_tell_kernel() is overrided
The last change is needed because we now tell the kernel about the new
partition layout in partition_table::gpt::write() when calling
disk_commit() while previously we were deferring that to
partition_table::write() which after having called the gpt's write()
calls tell_kernel() -> c::tell_kernel_to_reread_partition_table()
So we must tell partition_table::write() that telling the kernel to
reread the partition_table is not needed if we already succeeded in
that.
|
| |
|
| |
|
|
|
|
| |
it's unused since commit 1daabebda57976579465e5c281eaa14088e0e37f
|
|
|
|
|
|
| |
Needed for next commit
It could also be later used for drakx's lspci (like for ldetect's
lspcidrake)
|
| |
|
|
|
|
| |
it was added in commit 58776de07de819cb962aa35e76c8379d96f03e6b
|
|
|
|
| |
let's abuse ->{pt_type} for tracking such partitions
|
|
|
|
|
|
|
| |
...when adding or deleting a partition or setting its flag
rationale: telling kernel to reread partition table is done later in
partition_table::write() whereas partition_table::gpt::write() job is
just to update partition table on disk.
|
|
|
|
|
|
|
|
| |
On some machines, calls to ped_disk_new() in libparted take of
the order of seconds, so doing this for each flag and partition
in turn makes partition_table::gpt::read_one take an inordinate
amount of time (mga#15621). Instead, collect the flags during the
call to c::get_disk_partitions.
|
| |
|
| |
|
| |
|
|
|
|
| |
just bind the libparted function (needed for next commit)
|
|
|
|
| |
needed for next commit
|
| |
|
|
|
|
|
|
|
|
|
| |
ESP are the only partitions we're detecting through their pt_type
(modulo 0x12 which was Compaq Diagnostic & unlikely to be found on
GPT...)
However GPT has no equivalent to pt_type
But we can test for ESP flag
|
|
|
|
|
| |
done separatly in order to have a better history for simplify then
introducing new API
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
create directly the hash in XS instead of instead of sprintf()ing it
into a string which was then parsed in perl in order to actually create
the hash
this fixes several issues:
- due to adding some fields to the string under if (),
we could silently have ignored some partitions
-
this also simplifies adding further fields
|
| |
|
| |
|
|
|
|
| |
needed for next commit
|
|
|
|
| |
they're obsolete since switching from CVS/SVN to git...
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
fix warnings about numeric comparisons with strings
|
|
|
|
|
| |
regression introduced in commit r7096 on 2013-01-14:
"use a proper interface between C (ldetect) & perl world, using XS"
|
|
|
|
|
|
|
|
| |
create directly the hash in XS instead of instead of sprintf()ing it
into a string which was then parsed in perl in order to actually create
the hash
this also simplifies adding further fields
|
| |
|
| |
|
|
|
|
| |
install image (mga#4919)
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
/proc/bus/input/devices to avoid issues on 64bit kernel with 32bit userspace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
with Mageia.
This commit consitsts of the following subversion commits:
------------------------------------------------------------------------
r431 | dmorgan | 2011-02-06 01:58:02 +0000 (Sun, 06 Feb 2011) | 1 line
Add drakx structure on the SVN
------------------------------------------------------------------------
r432 | dmorgan | 2011-02-06 01:59:38 +0000 (Sun, 06 Feb 2011) | 1 line
Import cleaned advertising
------------------------------------------------------------------------
r446 | dmorgan | 2011-02-06 22:37:08 +0000 (Sun, 06 Feb 2011) | 1 line
Import Clean perl-install
------------------------------------------------------------------------
r448 | dmorgan | 2011-02-06 23:02:36 +0000 (Sun, 06 Feb 2011) | 1 line
Add cleaned files
------------------------------------------------------------------------
r449 | dmorgan | 2011-02-06 23:03:52 +0000 (Sun, 06 Feb 2011) | 1 line
Import cleaned kernel
------------------------------------------------------------------------
r450 | dmorgan | 2011-02-06 23:23:30 +0000 (Sun, 06 Feb 2011) | 1 line
Import cleaned tools
------------------------------------------------------------------------
r451 | dmorgan | 2011-02-07 00:01:56 +0000 (Mon, 07 Feb 2011) | 1 line
Import stage1
------------------------------------------------------------------------
r473 | dmorgan | 2011-02-07 11:20:50 +0000 (Mon, 07 Feb 2011) | 1 line
Import images
------------------------------------------------------------------------
r497 | ennael | 2011-02-09 21:02:06 +0000 (Wed, 09 Feb 2011) | 2 lines
readd missing file
------------------------------------------------------------------------
r502 | pterjan | 2011-02-09 23:30:32 +0000 (Wed, 09 Feb 2011) | 1 line
Import rescue
------------------------------------------------------------------------
r603 | ennael | 2011-02-24 13:32:54 +0000 (Thu, 24 Feb 2011) | 2 lines
import cleaned rescue for Mageia
------------------------------------------------------------------------
r2061 | tv | 2011-10-20 20:32:19 +0100 (Thu, 20 Oct 2011) | 1 line
import (cleaned) doc
------------------------------------------------------------------------
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
(needs ldetect >= 0.9)
|
| |
|
| |
|
| |
|
| |
|