udf: print an error for unsupported revisions

This commit is contained in:
Jérôme Duval
2012-09-28 00:45:06 +02:00
parent a71c00d314
commit 5485c7646e
@@ -525,7 +525,11 @@ walk_integrity_sequence(int device, uint32 blockSize, uint32 blockShift,
} }
if (!error) if (!error)
error = lastDescriptorWasClosed ? B_OK : B_BAD_DATA; error = lastDescriptorWasClosed ? B_OK : B_BAD_DATA;
if (!error) if (error == B_OK
error = highestMinimumUDFReadRevision <= UDF_MAX_READ_REVISION ? B_OK : B_ERROR; && highestMinimumUDFReadRevision > UDF_MAX_READ_REVISION) {
error = B_ERROR;
FATAL(("found udf revision 0x%x more than max 0x%x\n",
highestMinimumUDFReadRevision, UDF_MAX_READ_REVISION));
}
RETURN(error); RETURN(error);
} }