Hi Jean, Ginnie,
please see my comments below for libdiskmgt changes.
(I will also review slim_source part - comments will
be sent in separate email).
Thank you,
Jan
libdiskmgt.h
------------
just a nit:
124 }dm_partition_type_t;
->
124 } dm_partition_type_t;
partition.c
-----------
371 - it seems that 'j' variable is not needed as it is just (i + 1) -
the code might be slightly simplified then:
354 int i, j;
...
371 for (i = 0, j = 1; i < TOTAL_NUMPART; i++, j++) {
...
380 (void) snprintf(part_name,
381 sizeof (part_name),
382 "%s%d", pname, j);
383 } else {
384 (void) snprintf(part_name,
385 sizeof (part_name),
386 "%d", j);
387 }
...
->
354 int i;
...
371 for (i = 0; i < TOTAL_NUMPART; i++) {
...
380 (void) snprintf(part_name,
381 sizeof (part_name),
382 "%s%d", pname, i + 1);
383 } else {
384 (void) snprintf(part_name,
385 sizeof (part_name),
386 "%d", i + 1);
387 }
Could you please also add comment before this block of code explaining what
this code does ?
I assume these changes are addressing bug 6539687. If this is the case, I think
that the same modifications should be done in function partition_get_assocs() -
lines 193-199
nit:
582 memset(&iparts[i], 0, sizeof (iparts[i]));
->
582 memset(&iparts[i], 0, sizeof (struct ipart));
433-451
I am wondering if it might be possible to provide DM_PARTITION attribute
for Sparc as well (I assume it would be always set to DM_PRIMARY).
Then we wouldn't force the consumer to distinguish between Sparc and x86.
jeanm wrote:
>
> Please review the following for the installation on extended
> partitions project:
>
> For the ON gate (questions should be directed to Ginnie Wray):
>
> http://cr.opensolaris.org/~ginnie/libdisk3/
>
>
> For the slim_source gate (questions for libtd to Ginnie, rest of the
> code questions should be directed to William Schumann)
>
> file:///net/indiana-build.central/export/home/ws199450/extp/webrev/index.html
>
>
>
> Please respond by COB on Friday October 16.
>
> Thanks,
>
> Jean McCormack
>
>
> _______________________________________________
> caiman-discuss mailing list
> caiman-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/caiman-discuss