On Sun, Dec 19, 2010 at 11:15 AM, Marco Peereboom <sl...@peereboom.us> wrote:
> I could swear we had the sizes right but I'll have another look at this.
>
> What raid type did you test this with?

I can repro.  Crypto raid.

sd0g: size 20986560  this is the real disk

sd1a: 20985952 offset 64
sd1c: 20986033

softraid reserves metaoffset + metasize + loadersize + bootblocks ==
528 sectors.

20986560 - 528 = 20986032

So that's one smaller than the fake disk thinks it is.

Lucky for me, my 'a' partition with the filesystem is only 20985952 +
64 = 20986016 sectors, so it didn't try to use the last few.

Numbers again, minus prefix:

Base disk: 560
Space after SR meta: 32
SR disk's claimed 'c' size: 33

Reply via email to