Displaying 5 results from an estimated 5 matches for "next_ebr".
2019 Jan 21
0
[PATCH nbdkit v2 2/4] partition filter: Support MBR logical partitions.
...0xf || (byte) == 0x85)
+
struct mbr_partition {
uint8_t part_type_byte;
uint32_t start_sector;
@@ -69,16 +75,16 @@ find_mbr_partition (struct nbdkit_next_ops *next_ops, void *nxdata,
{
int i;
struct mbr_partition partition;
+ uint32_t ep_start_sector, ep_nr_sectors;
+ uint64_t ebr, next_ebr;
+ uint8_t sector[SECTOR_SIZE];
- if (partnum > 4) {
- nbdkit_error ("MBR logical partitions are not supported");
- return -1;
- }
-
+ /* Primary partition. */
for (i = 0; i < 4; ++i) {
get_mbr_partition (mbr, i, &partition);
if (partition.nr_sectors >...
2019 Jan 22
2
Re: [PATCH nbdkit v2 2/4] partition filter: Support MBR logical partitions.
...22 +++-
> 3 files changed, 121 insertions(+), 11 deletions(-)
>
> @@ -69,16 +75,16 @@ find_mbr_partition (struct nbdkit_next_ops *next_ops, void *nxdata,
> {
> int i;
> struct mbr_partition partition;
> + uint32_t ep_start_sector, ep_nr_sectors;
> + uint64_t ebr, next_ebr;
> + uint8_t sector[SECTOR_SIZE];
>
> - if (partnum > 4) {
> - nbdkit_error ("MBR logical partitions are not supported");
> - return -1;
> - }
> -
> + /* Primary partition. */
> for (i = 0; i < 4; ++i) {
> get_mbr_partition (mbr, i,...
2019 Jan 21
8
[PATCH nbdkit v2 0/4] Support MBR logical partitions.
This is a revised version of the two series previously posted here:
https://www.redhat.com/archives/libguestfs/2019-January/msg00137.html
https://www.redhat.com/archives/libguestfs/2019-January/msg00139.html
There have been many smaller changes but the highlights are:
- Using SECTOR_SIZE instead of hard-coding 512 everywhere.
- Additional safety checks that the EBR chain doesn't
jump
2019 Jan 22
7
[PATCH nbdkit v3 0/5] partition filter: Support MBR logical partitions.
I think this addresses everything in Eric's v2 review.
Note that the first patch is best viewed using ‘-w’ to ignore
whitespaces changes.
Rich.
2019 Jan 20
5
[PATCH nbdkit 0/4] partition: Support MBR logical partitions.
This implements support for MBR logical partitions in
nbdkit-partition-filter, complementing existing support in the
partitioning plugin.
Rich.