#
1.32 |
|
24-Mar-2024 |
martin |
PR 58061: fix bug in the GPT backend: when inserting a partition (i.e. not adding it at the end) a bogus ID was returned for the new partition.
|
#
1.31 |
|
08-Feb-2024 |
andvar |
fix misplaced or missing "e" in words with "ment" ending (argument, implement, increment, decrement, alignment), in comments, documentation, log messages.
|
Revision tags: netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base
|
#
1.30 |
|
15-Dec-2022 |
martin |
branches: 1.30.2; PR 57100: fix install flag handling for newly added GPT partitions, fix multiple install flags when updating existing partitions.
|
#
1.29 |
|
11-Jun-2022 |
martin |
Enhance support for the pseudo file system type "EFI System Partition".
|
#
1.28 |
|
30-Jan-2022 |
martin |
Do not defer wedge deletions when we have nothing mounted. Define and use a constant for maximum disk name length.
|
#
1.27 |
|
29-Jan-2022 |
martin |
Try to get rid of all wedges we created (after unmounting).
|
#
1.26 |
|
17-Jul-2021 |
martin |
Use strlcpy() to copy the wedge device name (the code still assumes the string is short enough and 0 terminated, but now gcc is happy).
|
#
1.25 |
|
17-Jul-2021 |
martin |
PR 56310: if we fail to create a wedge this either means there is a bug here (and we requested something nonsensial), or there are pre- existing "foreign" wedges which disturb our work. So remove all wedges on this disk that we do not know about and retry to add our new wedge.
|
#
1.24 |
|
17-Jul-2021 |
martin |
PR 56310: avoid assert() failures (or crashes) when the runtime addition of a wedge fails (for whatever reasons).
|
Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
|
#
1.23 |
|
31-Jan-2021 |
rillig |
sysinst: remove trailing whitespace from *.c *.h
In contrast to the messages files, this whitespace is not significant.
|
#
1.22 |
|
14-Oct-2020 |
martin |
Fix copy & pasto noticed by Jason Mitchell: change the type of a GPT partition via "gpt type" - not "gpt label".
|
#
1.21 |
|
13-Oct-2020 |
martin |
PR 55142: on popular demand bring back expert options to adjust the number of free inodes, block size and fragment size for FFS and LFS.
|
#
1.20 |
|
12-Oct-2020 |
martin |
PR 55536: when we find existing partition tables and have alternative formats available, offer to delete partitions and create new ones from scratch (in some other or the same on-disk format).
|
#
1.19 |
|
03-Oct-2020 |
martin |
PR 55384: detangle pm->ptstart from the "install" flag (selecting a target partition). Instead introduce a new PTI_INSTALL_TARGET per partition flag and deal with it in the partitioning backends.
Honour pm->ptstart when allocating new partitions - it is supposed to be the first sector usable by NetBSD.
|
Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
|
#
1.18 |
|
30-Mar-2020 |
martin |
branches: 1.18.2; Ooops, fix previous (PT_* enum values here are not DKW_PTYPE_* values)
|
#
1.17 |
|
30-Mar-2020 |
martin |
Support partition type ZFS
|
Revision tags: is-mlppp-base
|
#
1.16 |
|
27-Jan-2020 |
martin |
Fix support for non-512-byte/sector disks again after I broke it when introducing the abstract partition backends.
|
#
1.15 |
|
15-Jan-2020 |
martin |
Add a method to query the partitioning schemes "internal idea" of a cylinder size - whatever that means in the real world.
|
#
1.14 |
|
09-Jan-2020 |
martin |
Finish conversion of extended partitioning parts to new abstract backend interface. XXX still could use a lot of polishing.
|
#
1.13 |
|
13-Dec-2019 |
martin |
When finding (paritioning scheme native) partition types for file systems from our install description, pass the partition type (not only the file system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem type (MSDOS) is not a unique selector.
|
Revision tags: phil-wifi-20191119
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.31 |
|
08-Feb-2024 |
andvar |
fix misplaced or missing "e" in words with "ment" ending (argument, implement, increment, decrement, alignment), in comments, documentation, log messages.
|
Revision tags: netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base
|
#
1.30 |
|
15-Dec-2022 |
martin |
PR 57100: fix install flag handling for newly added GPT partitions, fix multiple install flags when updating existing partitions.
|
#
1.29 |
|
11-Jun-2022 |
martin |
Enhance support for the pseudo file system type "EFI System Partition".
|
#
1.28 |
|
30-Jan-2022 |
martin |
Do not defer wedge deletions when we have nothing mounted. Define and use a constant for maximum disk name length.
|
#
1.27 |
|
29-Jan-2022 |
martin |
Try to get rid of all wedges we created (after unmounting).
|
#
1.26 |
|
17-Jul-2021 |
martin |
Use strlcpy() to copy the wedge device name (the code still assumes the string is short enough and 0 terminated, but now gcc is happy).
|
#
1.25 |
|
17-Jul-2021 |
martin |
PR 56310: if we fail to create a wedge this either means there is a bug here (and we requested something nonsensial), or there are pre- existing "foreign" wedges which disturb our work. So remove all wedges on this disk that we do not know about and retry to add our new wedge.
|
#
1.24 |
|
17-Jul-2021 |
martin |
PR 56310: avoid assert() failures (or crashes) when the runtime addition of a wedge fails (for whatever reasons).
|
Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
|
#
1.23 |
|
31-Jan-2021 |
rillig |
sysinst: remove trailing whitespace from *.c *.h
In contrast to the messages files, this whitespace is not significant.
|
#
1.22 |
|
14-Oct-2020 |
martin |
Fix copy & pasto noticed by Jason Mitchell: change the type of a GPT partition via "gpt type" - not "gpt label".
|
#
1.21 |
|
13-Oct-2020 |
martin |
PR 55142: on popular demand bring back expert options to adjust the number of free inodes, block size and fragment size for FFS and LFS.
|
#
1.20 |
|
12-Oct-2020 |
martin |
PR 55536: when we find existing partition tables and have alternative formats available, offer to delete partitions and create new ones from scratch (in some other or the same on-disk format).
|
#
1.19 |
|
03-Oct-2020 |
martin |
PR 55384: detangle pm->ptstart from the "install" flag (selecting a target partition). Instead introduce a new PTI_INSTALL_TARGET per partition flag and deal with it in the partitioning backends.
Honour pm->ptstart when allocating new partitions - it is supposed to be the first sector usable by NetBSD.
|
Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
|
#
1.18 |
|
30-Mar-2020 |
martin |
branches: 1.18.2; Ooops, fix previous (PT_* enum values here are not DKW_PTYPE_* values)
|
#
1.17 |
|
30-Mar-2020 |
martin |
Support partition type ZFS
|
Revision tags: is-mlppp-base
|
#
1.16 |
|
27-Jan-2020 |
martin |
Fix support for non-512-byte/sector disks again after I broke it when introducing the abstract partition backends.
|
#
1.15 |
|
15-Jan-2020 |
martin |
Add a method to query the partitioning schemes "internal idea" of a cylinder size - whatever that means in the real world.
|
#
1.14 |
|
09-Jan-2020 |
martin |
Finish conversion of extended partitioning parts to new abstract backend interface. XXX still could use a lot of polishing.
|
#
1.13 |
|
13-Dec-2019 |
martin |
When finding (paritioning scheme native) partition types for file systems from our install description, pass the partition type (not only the file system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem type (MSDOS) is not a unique selector.
|
Revision tags: phil-wifi-20191119
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
Revision tags: netbsd-10-base
|
#
1.30 |
|
15-Dec-2022 |
martin |
PR 57100: fix install flag handling for newly added GPT partitions, fix multiple install flags when updating existing partitions.
|
#
1.29 |
|
11-Jun-2022 |
martin |
Enhance support for the pseudo file system type "EFI System Partition".
|
#
1.28 |
|
30-Jan-2022 |
martin |
Do not defer wedge deletions when we have nothing mounted. Define and use a constant for maximum disk name length.
|
#
1.27 |
|
29-Jan-2022 |
martin |
Try to get rid of all wedges we created (after unmounting).
|
#
1.26 |
|
17-Jul-2021 |
martin |
Use strlcpy() to copy the wedge device name (the code still assumes the string is short enough and 0 terminated, but now gcc is happy).
|
#
1.25 |
|
17-Jul-2021 |
martin |
PR 56310: if we fail to create a wedge this either means there is a bug here (and we requested something nonsensial), or there are pre- existing "foreign" wedges which disturb our work. So remove all wedges on this disk that we do not know about and retry to add our new wedge.
|
#
1.24 |
|
17-Jul-2021 |
martin |
PR 56310: avoid assert() failures (or crashes) when the runtime addition of a wedge fails (for whatever reasons).
|
Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
|
#
1.23 |
|
31-Jan-2021 |
rillig |
sysinst: remove trailing whitespace from *.c *.h
In contrast to the messages files, this whitespace is not significant.
|
#
1.22 |
|
14-Oct-2020 |
martin |
Fix copy & pasto noticed by Jason Mitchell: change the type of a GPT partition via "gpt type" - not "gpt label".
|
#
1.21 |
|
13-Oct-2020 |
martin |
PR 55142: on popular demand bring back expert options to adjust the number of free inodes, block size and fragment size for FFS and LFS.
|
#
1.20 |
|
12-Oct-2020 |
martin |
PR 55536: when we find existing partition tables and have alternative formats available, offer to delete partitions and create new ones from scratch (in some other or the same on-disk format).
|
#
1.19 |
|
03-Oct-2020 |
martin |
PR 55384: detangle pm->ptstart from the "install" flag (selecting a target partition). Instead introduce a new PTI_INSTALL_TARGET per partition flag and deal with it in the partitioning backends.
Honour pm->ptstart when allocating new partitions - it is supposed to be the first sector usable by NetBSD.
|
Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
|
#
1.18 |
|
30-Mar-2020 |
martin |
branches: 1.18.2; Ooops, fix previous (PT_* enum values here are not DKW_PTYPE_* values)
|
#
1.17 |
|
30-Mar-2020 |
martin |
Support partition type ZFS
|
Revision tags: is-mlppp-base
|
#
1.16 |
|
27-Jan-2020 |
martin |
Fix support for non-512-byte/sector disks again after I broke it when introducing the abstract partition backends.
|
#
1.15 |
|
15-Jan-2020 |
martin |
Add a method to query the partitioning schemes "internal idea" of a cylinder size - whatever that means in the real world.
|
#
1.14 |
|
09-Jan-2020 |
martin |
Finish conversion of extended partitioning parts to new abstract backend interface. XXX still could use a lot of polishing.
|
#
1.13 |
|
13-Dec-2019 |
martin |
When finding (paritioning scheme native) partition types for file systems from our install description, pass the partition type (not only the file system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem type (MSDOS) is not a unique selector.
|
Revision tags: phil-wifi-20191119
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.29 |
|
11-Jun-2022 |
martin |
Enhance support for the pseudo file system type "EFI System Partition".
|
#
1.28 |
|
30-Jan-2022 |
martin |
Do not defer wedge deletions when we have nothing mounted. Define and use a constant for maximum disk name length.
|
#
1.27 |
|
29-Jan-2022 |
martin |
Try to get rid of all wedges we created (after unmounting).
|
#
1.26 |
|
17-Jul-2021 |
martin |
Use strlcpy() to copy the wedge device name (the code still assumes the string is short enough and 0 terminated, but now gcc is happy).
|
#
1.25 |
|
17-Jul-2021 |
martin |
PR 56310: if we fail to create a wedge this either means there is a bug here (and we requested something nonsensial), or there are pre- existing "foreign" wedges which disturb our work. So remove all wedges on this disk that we do not know about and retry to add our new wedge.
|
#
1.24 |
|
17-Jul-2021 |
martin |
PR 56310: avoid assert() failures (or crashes) when the runtime addition of a wedge fails (for whatever reasons).
|
Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
|
#
1.23 |
|
31-Jan-2021 |
rillig |
sysinst: remove trailing whitespace from *.c *.h
In contrast to the messages files, this whitespace is not significant.
|
#
1.22 |
|
14-Oct-2020 |
martin |
Fix copy & pasto noticed by Jason Mitchell: change the type of a GPT partition via "gpt type" - not "gpt label".
|
#
1.21 |
|
13-Oct-2020 |
martin |
PR 55142: on popular demand bring back expert options to adjust the number of free inodes, block size and fragment size for FFS and LFS.
|
#
1.20 |
|
12-Oct-2020 |
martin |
PR 55536: when we find existing partition tables and have alternative formats available, offer to delete partitions and create new ones from scratch (in some other or the same on-disk format).
|
#
1.19 |
|
03-Oct-2020 |
martin |
PR 55384: detangle pm->ptstart from the "install" flag (selecting a target partition). Instead introduce a new PTI_INSTALL_TARGET per partition flag and deal with it in the partitioning backends.
Honour pm->ptstart when allocating new partitions - it is supposed to be the first sector usable by NetBSD.
|
Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
|
#
1.18 |
|
30-Mar-2020 |
martin |
branches: 1.18.2; Ooops, fix previous (PT_* enum values here are not DKW_PTYPE_* values)
|
#
1.17 |
|
30-Mar-2020 |
martin |
Support partition type ZFS
|
Revision tags: is-mlppp-base
|
#
1.16 |
|
27-Jan-2020 |
martin |
Fix support for non-512-byte/sector disks again after I broke it when introducing the abstract partition backends.
|
#
1.15 |
|
15-Jan-2020 |
martin |
Add a method to query the partitioning schemes "internal idea" of a cylinder size - whatever that means in the real world.
|
#
1.14 |
|
09-Jan-2020 |
martin |
Finish conversion of extended partitioning parts to new abstract backend interface. XXX still could use a lot of polishing.
|
#
1.13 |
|
13-Dec-2019 |
martin |
When finding (paritioning scheme native) partition types for file systems from our install description, pass the partition type (not only the file system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem type (MSDOS) is not a unique selector.
|
Revision tags: phil-wifi-20191119
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.28 |
|
30-Jan-2022 |
martin |
Do not defer wedge deletions when we have nothing mounted. Define and use a constant for maximum disk name length.
|
#
1.27 |
|
29-Jan-2022 |
martin |
Try to get rid of all wedges we created (after unmounting).
|
#
1.26 |
|
17-Jul-2021 |
martin |
Use strlcpy() to copy the wedge device name (the code still assumes the string is short enough and 0 terminated, but now gcc is happy).
|
#
1.25 |
|
17-Jul-2021 |
martin |
PR 56310: if we fail to create a wedge this either means there is a bug here (and we requested something nonsensial), or there are pre- existing "foreign" wedges which disturb our work. So remove all wedges on this disk that we do not know about and retry to add our new wedge.
|
#
1.24 |
|
17-Jul-2021 |
martin |
PR 56310: avoid assert() failures (or crashes) when the runtime addition of a wedge fails (for whatever reasons).
|
Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
|
#
1.23 |
|
31-Jan-2021 |
rillig |
sysinst: remove trailing whitespace from *.c *.h
In contrast to the messages files, this whitespace is not significant.
|
#
1.22 |
|
14-Oct-2020 |
martin |
Fix copy & pasto noticed by Jason Mitchell: change the type of a GPT partition via "gpt type" - not "gpt label".
|
#
1.21 |
|
13-Oct-2020 |
martin |
PR 55142: on popular demand bring back expert options to adjust the number of free inodes, block size and fragment size for FFS and LFS.
|
#
1.20 |
|
12-Oct-2020 |
martin |
PR 55536: when we find existing partition tables and have alternative formats available, offer to delete partitions and create new ones from scratch (in some other or the same on-disk format).
|
#
1.19 |
|
03-Oct-2020 |
martin |
PR 55384: detangle pm->ptstart from the "install" flag (selecting a target partition). Instead introduce a new PTI_INSTALL_TARGET per partition flag and deal with it in the partitioning backends.
Honour pm->ptstart when allocating new partitions - it is supposed to be the first sector usable by NetBSD.
|
Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
|
#
1.18 |
|
30-Mar-2020 |
martin |
branches: 1.18.2; Ooops, fix previous (PT_* enum values here are not DKW_PTYPE_* values)
|
#
1.17 |
|
30-Mar-2020 |
martin |
Support partition type ZFS
|
Revision tags: is-mlppp-base
|
#
1.16 |
|
27-Jan-2020 |
martin |
Fix support for non-512-byte/sector disks again after I broke it when introducing the abstract partition backends.
|
#
1.15 |
|
15-Jan-2020 |
martin |
Add a method to query the partitioning schemes "internal idea" of a cylinder size - whatever that means in the real world.
|
#
1.14 |
|
09-Jan-2020 |
martin |
Finish conversion of extended partitioning parts to new abstract backend interface. XXX still could use a lot of polishing.
|
#
1.13 |
|
13-Dec-2019 |
martin |
When finding (paritioning scheme native) partition types for file systems from our install description, pass the partition type (not only the file system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem type (MSDOS) is not a unique selector.
|
Revision tags: phil-wifi-20191119
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.26 |
|
17-Jul-2021 |
martin |
Use strlcpy() to copy the wedge device name (the code still assumes the string is short enough and 0 terminated, but now gcc is happy).
|
#
1.25 |
|
17-Jul-2021 |
martin |
PR 56310: if we fail to create a wedge this either means there is a bug here (and we requested something nonsensial), or there are pre- existing "foreign" wedges which disturb our work. So remove all wedges on this disk that we do not know about and retry to add our new wedge.
|
#
1.24 |
|
17-Jul-2021 |
martin |
PR 56310: avoid assert() failures (or crashes) when the runtime addition of a wedge fails (for whatever reasons).
|
Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
|
#
1.23 |
|
31-Jan-2021 |
rillig |
sysinst: remove trailing whitespace from *.c *.h
In contrast to the messages files, this whitespace is not significant.
|
#
1.22 |
|
14-Oct-2020 |
martin |
Fix copy & pasto noticed by Jason Mitchell: change the type of a GPT partition via "gpt type" - not "gpt label".
|
#
1.21 |
|
13-Oct-2020 |
martin |
PR 55142: on popular demand bring back expert options to adjust the number of free inodes, block size and fragment size for FFS and LFS.
|
#
1.20 |
|
12-Oct-2020 |
martin |
PR 55536: when we find existing partition tables and have alternative formats available, offer to delete partitions and create new ones from scratch (in some other or the same on-disk format).
|
#
1.19 |
|
03-Oct-2020 |
martin |
PR 55384: detangle pm->ptstart from the "install" flag (selecting a target partition). Instead introduce a new PTI_INSTALL_TARGET per partition flag and deal with it in the partitioning backends.
Honour pm->ptstart when allocating new partitions - it is supposed to be the first sector usable by NetBSD.
|
Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
|
#
1.18 |
|
30-Mar-2020 |
martin |
branches: 1.18.2; Ooops, fix previous (PT_* enum values here are not DKW_PTYPE_* values)
|
#
1.17 |
|
30-Mar-2020 |
martin |
Support partition type ZFS
|
Revision tags: is-mlppp-base
|
#
1.16 |
|
27-Jan-2020 |
martin |
Fix support for non-512-byte/sector disks again after I broke it when introducing the abstract partition backends.
|
#
1.15 |
|
15-Jan-2020 |
martin |
Add a method to query the partitioning schemes "internal idea" of a cylinder size - whatever that means in the real world.
|
#
1.14 |
|
09-Jan-2020 |
martin |
Finish conversion of extended partitioning parts to new abstract backend interface. XXX still could use a lot of polishing.
|
#
1.13 |
|
13-Dec-2019 |
martin |
When finding (paritioning scheme native) partition types for file systems from our install description, pass the partition type (not only the file system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem type (MSDOS) is not a unique selector.
|
Revision tags: phil-wifi-20191119
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.24 |
|
17-Jul-2021 |
martin |
PR 56310: avoid assert() failures (or crashes) when the runtime addition of a wedge fails (for whatever reasons).
|
Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
|
#
1.23 |
|
31-Jan-2021 |
rillig |
sysinst: remove trailing whitespace from *.c *.h
In contrast to the messages files, this whitespace is not significant.
|
#
1.22 |
|
14-Oct-2020 |
martin |
Fix copy & pasto noticed by Jason Mitchell: change the type of a GPT partition via "gpt type" - not "gpt label".
|
#
1.21 |
|
13-Oct-2020 |
martin |
PR 55142: on popular demand bring back expert options to adjust the number of free inodes, block size and fragment size for FFS and LFS.
|
#
1.20 |
|
12-Oct-2020 |
martin |
PR 55536: when we find existing partition tables and have alternative formats available, offer to delete partitions and create new ones from scratch (in some other or the same on-disk format).
|
#
1.19 |
|
03-Oct-2020 |
martin |
PR 55384: detangle pm->ptstart from the "install" flag (selecting a target partition). Instead introduce a new PTI_INSTALL_TARGET per partition flag and deal with it in the partitioning backends.
Honour pm->ptstart when allocating new partitions - it is supposed to be the first sector usable by NetBSD.
|
Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
|
#
1.18 |
|
30-Mar-2020 |
martin |
branches: 1.18.2; Ooops, fix previous (PT_* enum values here are not DKW_PTYPE_* values)
|
#
1.17 |
|
30-Mar-2020 |
martin |
Support partition type ZFS
|
Revision tags: is-mlppp-base
|
#
1.16 |
|
27-Jan-2020 |
martin |
Fix support for non-512-byte/sector disks again after I broke it when introducing the abstract partition backends.
|
#
1.15 |
|
15-Jan-2020 |
martin |
Add a method to query the partitioning schemes "internal idea" of a cylinder size - whatever that means in the real world.
|
#
1.14 |
|
09-Jan-2020 |
martin |
Finish conversion of extended partitioning parts to new abstract backend interface. XXX still could use a lot of polishing.
|
#
1.13 |
|
13-Dec-2019 |
martin |
When finding (paritioning scheme native) partition types for file systems from our install description, pass the partition type (not only the file system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem type (MSDOS) is not a unique selector.
|
Revision tags: phil-wifi-20191119
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.23 |
|
31-Jan-2021 |
rillig |
sysinst: remove trailing whitespace from *.c *.h
In contrast to the messages files, this whitespace is not significant.
|
#
1.22 |
|
14-Oct-2020 |
martin |
Fix copy & pasto noticed by Jason Mitchell: change the type of a GPT partition via "gpt type" - not "gpt label".
|
#
1.21 |
|
13-Oct-2020 |
martin |
PR 55142: on popular demand bring back expert options to adjust the number of free inodes, block size and fragment size for FFS and LFS.
|
#
1.20 |
|
12-Oct-2020 |
martin |
PR 55536: when we find existing partition tables and have alternative formats available, offer to delete partitions and create new ones from scratch (in some other or the same on-disk format).
|
#
1.19 |
|
03-Oct-2020 |
martin |
PR 55384: detangle pm->ptstart from the "install" flag (selecting a target partition). Instead introduce a new PTI_INSTALL_TARGET per partition flag and deal with it in the partitioning backends.
Honour pm->ptstart when allocating new partitions - it is supposed to be the first sector usable by NetBSD.
|
Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
|
#
1.18 |
|
30-Mar-2020 |
martin |
branches: 1.18.2; Ooops, fix previous (PT_* enum values here are not DKW_PTYPE_* values)
|
#
1.17 |
|
30-Mar-2020 |
martin |
Support partition type ZFS
|
Revision tags: is-mlppp-base
|
#
1.16 |
|
27-Jan-2020 |
martin |
Fix support for non-512-byte/sector disks again after I broke it when introducing the abstract partition backends.
|
#
1.15 |
|
15-Jan-2020 |
martin |
Add a method to query the partitioning schemes "internal idea" of a cylinder size - whatever that means in the real world.
|
#
1.14 |
|
09-Jan-2020 |
martin |
Finish conversion of extended partitioning parts to new abstract backend interface. XXX still could use a lot of polishing.
|
#
1.13 |
|
13-Dec-2019 |
martin |
When finding (paritioning scheme native) partition types for file systems from our install description, pass the partition type (not only the file system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem type (MSDOS) is not a unique selector.
|
Revision tags: phil-wifi-20191119
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.22 |
|
14-Oct-2020 |
martin |
Fix copy & pasto noticed by Jason Mitchell: change the type of a GPT partition via "gpt type" - not "gpt label".
|
#
1.21 |
|
13-Oct-2020 |
martin |
PR 55142: on popular demand bring back expert options to adjust the number of free inodes, block size and fragment size for FFS and LFS.
|
#
1.20 |
|
12-Oct-2020 |
martin |
PR 55536: when we find existing partition tables and have alternative formats available, offer to delete partitions and create new ones from scratch (in some other or the same on-disk format).
|
#
1.19 |
|
03-Oct-2020 |
martin |
PR 55384: detangle pm->ptstart from the "install" flag (selecting a target partition). Instead introduce a new PTI_INSTALL_TARGET per partition flag and deal with it in the partitioning backends.
Honour pm->ptstart when allocating new partitions - it is supposed to be the first sector usable by NetBSD.
|
Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
|
#
1.18 |
|
30-Mar-2020 |
martin |
branches: 1.18.2; Ooops, fix previous (PT_* enum values here are not DKW_PTYPE_* values)
|
#
1.17 |
|
30-Mar-2020 |
martin |
Support partition type ZFS
|
Revision tags: is-mlppp-base
|
#
1.16 |
|
27-Jan-2020 |
martin |
Fix support for non-512-byte/sector disks again after I broke it when introducing the abstract partition backends.
|
#
1.15 |
|
15-Jan-2020 |
martin |
Add a method to query the partitioning schemes "internal idea" of a cylinder size - whatever that means in the real world.
|
#
1.14 |
|
09-Jan-2020 |
martin |
Finish conversion of extended partitioning parts to new abstract backend interface. XXX still could use a lot of polishing.
|
#
1.13 |
|
13-Dec-2019 |
martin |
When finding (paritioning scheme native) partition types for file systems from our install description, pass the partition type (not only the file system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem type (MSDOS) is not a unique selector.
|
Revision tags: phil-wifi-20191119
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.19 |
|
03-Oct-2020 |
martin |
PR 55384: detangle pm->ptstart from the "install" flag (selecting a target partition). Instead introduce a new PTI_INSTALL_TARGET per partition flag and deal with it in the partitioning backends.
Honour pm->ptstart when allocating new partitions - it is supposed to be the first sector usable by NetBSD.
|
Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
|
#
1.18 |
|
30-Mar-2020 |
martin |
branches: 1.18.2; Ooops, fix previous (PT_* enum values here are not DKW_PTYPE_* values)
|
#
1.17 |
|
30-Mar-2020 |
martin |
Support partition type ZFS
|
Revision tags: is-mlppp-base
|
#
1.16 |
|
27-Jan-2020 |
martin |
Fix support for non-512-byte/sector disks again after I broke it when introducing the abstract partition backends.
|
#
1.15 |
|
15-Jan-2020 |
martin |
Add a method to query the partitioning schemes "internal idea" of a cylinder size - whatever that means in the real world.
|
#
1.14 |
|
09-Jan-2020 |
martin |
Finish conversion of extended partitioning parts to new abstract backend interface. XXX still could use a lot of polishing.
|
#
1.13 |
|
13-Dec-2019 |
martin |
When finding (paritioning scheme native) partition types for file systems from our install description, pass the partition type (not only the file system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem type (MSDOS) is not a unique selector.
|
Revision tags: phil-wifi-20191119
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.18 |
|
30-Mar-2020 |
martin |
Ooops, fix previous (PT_* enum values here are not DKW_PTYPE_* values)
|
#
1.17 |
|
30-Mar-2020 |
martin |
Support partition type ZFS
|
#
1.16 |
|
27-Jan-2020 |
martin |
Fix support for non-512-byte/sector disks again after I broke it when introducing the abstract partition backends.
|
#
1.15 |
|
15-Jan-2020 |
martin |
Add a method to query the partitioning schemes "internal idea" of a cylinder size - whatever that means in the real world.
|
#
1.14 |
|
09-Jan-2020 |
martin |
Finish conversion of extended partitioning parts to new abstract backend interface. XXX still could use a lot of polishing.
|
#
1.13 |
|
13-Dec-2019 |
martin |
When finding (paritioning scheme native) partition types for file systems from our install description, pass the partition type (not only the file system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem type (MSDOS) is not a unique selector.
|
Revision tags: phil-wifi-20191119
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.17 |
|
30-Mar-2020 |
martin |
Support partition type ZFS
|
#
1.16 |
|
27-Jan-2020 |
martin |
Fix support for non-512-byte/sector disks again after I broke it when introducing the abstract partition backends.
|
#
1.15 |
|
15-Jan-2020 |
martin |
Add a method to query the partitioning schemes "internal idea" of a cylinder size - whatever that means in the real world.
|
#
1.14 |
|
09-Jan-2020 |
martin |
Finish conversion of extended partitioning parts to new abstract backend interface. XXX still could use a lot of polishing.
|
#
1.13 |
|
13-Dec-2019 |
martin |
When finding (paritioning scheme native) partition types for file systems from our install description, pass the partition type (not only the file system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem type (MSDOS) is not a unique selector.
|
Revision tags: phil-wifi-20191119
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.16 |
|
27-Jan-2020 |
martin |
Fix support for non-512-byte/sector disks again after I broke it when introducing the abstract partition backends.
|
#
1.15 |
|
15-Jan-2020 |
martin |
Add a method to query the partitioning schemes "internal idea" of a cylinder size - whatever that means in the real world.
|
#
1.14 |
|
09-Jan-2020 |
martin |
Finish conversion of extended partitioning parts to new abstract backend interface. XXX still could use a lot of polishing.
|
#
1.13 |
|
13-Dec-2019 |
martin |
When finding (paritioning scheme native) partition types for file systems from our install description, pass the partition type (not only the file system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem type (MSDOS) is not a unique selector.
|
Revision tags: phil-wifi-20191119
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.15 |
|
15-Jan-2020 |
martin |
Add a method to query the partitioning schemes "internal idea" of a cylinder size - whatever that means in the real world.
|
#
1.14 |
|
09-Jan-2020 |
martin |
Finish conversion of extended partitioning parts to new abstract backend interface. XXX still could use a lot of polishing.
|
#
1.13 |
|
13-Dec-2019 |
martin |
When finding (paritioning scheme native) partition types for file systems from our install description, pass the partition type (not only the file system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem type (MSDOS) is not a unique selector.
|
Revision tags: phil-wifi-20191119
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.14 |
|
09-Jan-2020 |
martin |
Finish conversion of extended partitioning parts to new abstract backend interface. XXX still could use a lot of polishing.
|
#
1.13 |
|
13-Dec-2019 |
martin |
When finding (paritioning scheme native) partition types for file systems from our install description, pass the partition type (not only the file system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem type (MSDOS) is not a unique selector.
|
Revision tags: phil-wifi-20191119
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.13 |
|
13-Dec-2019 |
martin |
When finding (paritioning scheme native) partition types for file systems from our install description, pass the partition type (not only the file system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem type (MSDOS) is not a unique selector.
|
Revision tags: phil-wifi-20191119
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.12 |
|
12-Nov-2019 |
martin |
Add options to the various partitioning stages that allow cloning of alien partitions (optionally including data).
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.11 |
|
26-Aug-2019 |
martin |
Fix a bug when installing to pre-exising GPT partitions. Handle GPT labels with spaces.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.10 |
|
14-Aug-2019 |
martin |
On architectures that usually do MBR/disklabel, nevertheless deal with pure/plain disklabel disks, and explicitly offer this as partitioning option when bootability is not a concern.
|
#
1.9 |
|
07-Aug-2019 |
martin |
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the available types at compile time, check for available newfs_* helper binaries in the actual install environment at runtime.
|
#
1.8 |
|
03-Aug-2019 |
martin |
When reading an existing gpt, match the wedges already existing ons on the parent device, so we can use them directly if we should proceed with an unmodified partition table.
|
#
1.7 |
|
02-Aug-2019 |
martin |
Deal with missing labels when parsing gpt(8) output.
|
Revision tags: netbsd-9-base
|
#
1.6 |
|
28-Jul-2019 |
martin |
branches: 1.6.2; If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.6 |
|
28-Jul-2019 |
martin |
If available, show additional names of foreign partitions in the size menu. Makes installing on machines with other OSes installed a lot less confusing.
|
#
1.5 |
|
28-Jul-2019 |
martin |
Deal with partition types we don't know anything about.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.4 |
|
26-Jul-2019 |
martin |
Strip trailing / from last mounted strings. No idea how they happen, but for cgd root (init.root = "/altroot") they have been reported to exist.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.3 |
|
25-Jul-2019 |
martin |
Fix a few calloc() calls with wrong arg order (harmless, but for consistency)
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|
#
1.2 |
|
23-Jun-2019 |
martin |
Ignore corrupt GPTs
|
#
1.1 |
|
12-Jun-2019 |
martin |
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions.
Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART.
Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage:
- partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme".
- implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon)
- partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions".
- all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific)
Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release.
This work was sponsored by The NetBSD Foundation, Inc.
|