/// return true if partition extraction successfully executed, false otherwise␊ |
-(bool) isValid␊ |
{␊ |
␉return err==0;␊ |
␉␊ |
␉return (␊ |
␉␉␉err==0␊ |
␉␉␉// && [self isBootable] don't hide non bootable disk for now to be in sync ␊ |
␉␉␉// with chameleon as much as possible␊ |
␉␉␉&& ![[self devProtocol] isEqual:@"Virtual Interface"]␊ |
␉␉␉);␊ |
}␊ |
␊ |
/// Extract a particular information from the disk partition dictionary from a key, generate a string value output␊ |
|
␉␉␉{␊ |
␉␉␉␉PartitionInfoElement* elt = ␊ |
␉␉␉␉[[PartitionInfoElement alloc] initWithBSDName: part withinSession: session];␊ |
␉␉␉␉if (elt!=nil && [[elt vName] length] >0) ␊ |
␉␉␉␉if (elt!=nil && [[elt vName] length] >0 && [elt isValid] ) ␊ |
␉␉␉␉␉[arr addObject:elt];␊ |
␉␉␉}␊ |
␉␉␉if (session!=nil) CFRelease(session);␊ |