-If passed 'Not Present', parsefru won't mess up now

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6828 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-07-22 14:39:21 +00:00
parent cb2e2bb2a5
commit 83d2b08c88

View File

@ -2193,6 +2193,9 @@ sub parsefru {
my $currsize; #store current size
my $subidx;
my @currarea;
unless (ref $bytes) {
return $bytes,undef;
}
unless ($bytes->[0]==1) {
if ($bytes->[0]==0 or $bytes->[0]==0xff) { #not in spec, but probably unitialized, xCAT probably will rewrite fresh
return "clear",undef;