Lines Matching refs:primary

210 	Udf::primary_volume_descriptor primary;
255 _PrintUpdate(VERBOSITY_MEDIUM, "iso: Writing primary volume descriptor");
335 // reserve primary vds (min length = 16 blocks, which is plenty for us)
337 _PrintUpdate(VERBOSITY_HIGH, "udf: Reserving space for primary vds");
349 // vds immediately following the primary vds, which seems a bit stupid to me,
387 _PrintUpdate(VERBOSITY_MEDIUM, "udf: Writing primary volume descriptor");
389 primary.set_vds_number(vdsNumber);
390 primary.set_primary_volume_descriptor_number(0);
392 if (nameLength > primary.volume_identifier().size()-1) {
393 _PrintWarning("udf: Truncating volume name as stored in primary "
400 primary.volume_identifier().size());
401 memcpy(primary.volume_identifier().data, volumeIdField.String(),
402 primary.volume_identifier().size());
403 primary.set_volume_sequence_number(1);
404 primary.set_max_volume_sequence_number(1);
405 primary.set_interchange_level(2);
406 primary.set_max_interchange_level(3);
407 primary.set_character_set_list(1);
408 primary.set_max_character_set_list(1);
416 primary.volume_set_identifier().size());
417 memcpy(primary.volume_set_identifier().data, volumeSetIdField.String(),
418 primary.volume_set_identifier().size());
419 primary.descriptor_character_set() = Udf::kCs0CharacterSet;
420 primary.explanatory_character_set() = Udf::kCs0CharacterSet;
421 primary.volume_abstract() = kNullExtent;
422 primary.volume_copyright_notice() = kNullExtent;
423 primary.application_id() = kApplicationId;
424 primary.recording_date_and_time() = _BuildTimeStamp();
425 primary.implementation_id() = Udf::kImplementationId;
426 memset(primary.implementation_use().data, 0,
427 primary.implementation_use().size());
428 primary.set_predecessor_volume_descriptor_sequence_location(0);
429 primary.set_flags(0); // ToDo: maybe 1 is more appropriate?
430 memset(primary.reserved().data, 0, primary.reserved().size());
431 primary.tag().set_id(Udf::TAGID_PRIMARY_VOLUME_DESCRIPTOR);
432 primary.tag().set_version(_UdfDescriptorVersion());
433 primary.tag().set_serial_number(0);
435 // location is dependent on which sequence (primary or reserve)
438 DUMP(primary);
439 // write primary_vd to primary vds
440 primary.tag().set_location(primaryVdsExtent.location()+vdsNumber);
441 primary.tag().set_checksums(primary);
442 ssize_t bytes = _OutputFile().WriteAt(off_t(primary.tag().location()) << _BlockShift(),
443 &primary, sizeof(primary));
444 error = check_size_error(bytes, sizeof(primary));
447 bytes = _OutputFile().ZeroAt((off_t(primary.tag().location()) << _BlockShift())
453 primary.tag().set_location(reserveVdsExtent.location()+vdsNumber);
454 primary.tag().set_checksums(primary);
455 ssize_t bytes = _OutputFile().WriteAt(off_t(primary.tag().location()) << _BlockShift(),
456 &primary, sizeof(primary));
457 error = check_size_error(bytes, sizeof(primary));
460 bytes = _OutputFile().ZeroAt(off_t((primary.tag().location()) << _BlockShift())
495 // location is dependent on which sequence (primary or reserve)
499 // write partition descriptor to primary vds
538 // location is dependent on which sequence (primary or reserve)
542 // write freespace descriptor to primary vds
626 // location is dependent on which sequence (primary or reserve)
630 // write partition descriptor to primary vds
703 // location is dependent on which sequence (primary or reserve)
707 // write implementationUse descriptor to primary vds
746 // write terminator to primary vds
864 // write partition descriptor to primary vds