[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-users
Subject:    Re: question about paritions/disklabel
From:       mlelstv () serpens ! de (Michael van Elst)
Date:       2013-02-19 7:00:02
Message-ID: kfv7th$m5n$1 () serpens ! de
[Download RAW message or body]

fluca1978@infinito.it (Luca Ferrari) writes:

>16 partitions:
>#        size    offset     fstype [fsize bsize cpg/sgs]
> a:   4192256      2048     4.2BSD   2048 16384     0  # (Cyl.      2*-   4161*)
> c:   4192256      2048     unused      0     0        # (Cyl.      2*-   4161*)
> d:   4194304         0     unused      0     0        # (Cyl.      0 -   4161*)


struct disklabel {
	...
	uint16_t d_npartitions; /* number of partitions in following */
	...
	struct partition {
	} d_partitions[MAXPARTITIONS];
};

It simply prints whatever is in the disklabel and it does not print
partitions with size == 0. You can simply edit the d_npartitions value
and in interactive mode the value is extended when you define new
partitions beyond the current setting.

-- 
-- 
                                Michael van Elst
Internet: mlelstv@serpens.de
                                "A potential Snark may lurk in every tree."
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic