Casper.Dik at Sun.COM wrote:
>> Casper.Dik at Sun.COM writes:
>>     
>>> Specify disk (enter its number): 0
>>> selecting c1t0d0
>>> [disk formatted]
>>> Warning: Current Disk has mounted partitions.
>>> /dev/dsk/c1t0d0s0 is currently mounted on /a. Please see umount(1M).
>>> /dev/dsk/c1t0d0s1 is currently used by swap. Please see swap(1M).
>>> /dev/dsk/c1t0d0s7 is part of active ZFS pool export. Please see zpool(1M).
>>>
>>> Now I think gparted is aimed at "single disk systems" but do we need
>>> to give a warning if we change the disk with gparted?
>>>       
>> I thought that 'parted' was for real partitions, not Solaris slices.
>> Does libdiskmgt know much about the "in use" status for real
>> partitions?
>>     
>
> Well, certainly for EFI labeled disks.  Why would these be different?
>
> "I used this free partition but now XP is gone".
>
> Casper
>
>   

Parted has code in it to prevent modification of in-use partitions. It 
calls an OS stub before doing anything dangerous. I will use libdiskmgmt 
to fill in that stub for Solaris.

Mark

Reply via email to