Terminating Descriptor is the last descriptor in Volume Descriptor
Sequence. After it there can be unrecorded or empty sectors which we do not
have to scan.
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
#define TAG_ID_PVD 1
#define TAG_ID_AVDP 2
#define TAG_ID_LVD 6
+#define TAG_ID_TD 8
#define TAG_ID_LVID 9
struct volume_structure_descriptor {
break;
if (le32_to_cpu(vd->tag.location) != loc + b)
break;
+ if (type == TAG_ID_TD)
+ break;
if (type == TAG_ID_PVD) {
if (!have_volid) {
int enc = udf_cid_to_enc(vd->type.primary.ident.cid);