Hi Drew,
In physical.py, the function you updated is called _release_swap().
Since that function
is only releasing UFS swap slices, I think it would be better to rename
it to
_release_ufs_swap(). This change also better matches with the name of
the following function: "_create_ufs_swap()". Can you also update the
comment
to explicitly say that the function only takes care of swap slices on disks?
On testing, did you run the slim unit tests?
Thanks,
--Karen
On 05/31/12 08:14, Drew Fisher wrote:
Good morning!
Could I please get a few sets of eyes on a code review for the
following CRs:
7171070 <http://monaco.us.oracle.com/detail.jsf?cr=7171070>
text-install should update the error messages for invalid slice size
7173030 <http://monaco.us.oracle.com/detail.jsf?cr=7173030>
text-install Installation Failed because of "/usr/sbin/swap -d
/dev/dsk/c8t0d0swap" failed
https://cr.opensolaris.org/action/browse/caiman/drewfish/ti_fixes/webrev/
The fix for 7171070 is to simply return the quote characters around
the radix character in the error message.
The fix for 7173030 is a small refactor of Disk._release_swap(). The
code there was designed a long time ago for the temporary version of
target instantiation needed for DC before CUD_TI was completed. It
was designed for releasing swap on zpool, which was the reason for
adding the string of "swap" to the end of the swap -d call. Since
we're in the Disk class, there's no knowledge of anything ZFS which
means we can simply use the CTD string of the disk for comparison.
I tested 7173030 by creating a UFS swap slice on the disk I was
attempting to install to and verifying swap -d is called correctly
before zpool create gets called.
Thanks!
-Drew
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss