Ataraid-list Digest, Vol 44, Issue 11

Fang, Ying ying.fang at intel.com
Thu Oct 25 18:24:51 UTC 2007


>
>Let's avoid the superfluous allocation and take Ians patch.
>
>Thanks,
>Heinz
>
Heinz,

Removing unnecessary memory allocating and copying is a good idea. I'm
glad that the -r -E issue is solved.

I have used the same memory allocation policy in the current
implementation and would like to hear your opinions.

The extra memory allocation is used to simplify memory relocation in
metadata creation (you'll see the code soon) and reduce the chance to
make error because of the properties of ISW metadata. The ISW metadata
has variable length and its on-disk location is that the first sector at
the back of the other sectors in sequence. Also the size of volume data
(without the header) is smaller than one sector so with an extra sector,
the memory adjustment occurs only after a volume is created. 

Thanks,
Ying




More information about the Ataraid-list mailing list