There are two problems addressed by this bug.

1) After initial AI installation, the swap slice is regarded as user 
data in subsequent AI installations instead of scratch
2) The swap slice space allocation in TI is not done with any awareness 
of AI customization

The fix involving making AI aware of 1 and for AI to perform 2 instead 
of leaving everything to TI, which allocates the swap space for GUI.

Added a code path for AI client, different from GUI client in signaling 
TI when to take its GUI default action of using entire partition for 
slice 0 (and creating slice 1 as swap if attribute set).

Enhanced Orchestrator om_create_slice() to set VTOC partition tag 
(root|swap|unassigned)

In TI ti_dm.c, moved check for TI_ATTR_CREATE_SWAP_SLICE outside of 
check for TI_ATTR_SLICE_DEFAULT_LAYOUT since they are now separate 
issues for AI and GUI.  TI_ATTR_CREATE_SWAP slice causes 'swap -a  
...s1' to be issued.

Renamed struct element .install to .s_install to make it a unique token.

http://defect.opensolaris.org/bz/show_bug.cgi?id=7758
http://cr.opensolaris.org/~wmsch/bug-7758/


Reply via email to