Lines Matching defs:vdd

717 	struct vdd {
950 struct archive_write *, struct vdd *,
953 static int write_VD(struct archive_write *, struct vdd *);
957 struct vdd *);
959 struct vdd *);
962 static void calculate_path_table_size(struct vdd *);
995 int, struct vdd *);
1002 static void idr_init(struct iso9660 *, struct vdd *, struct idr *);
3765 struct archive_write *a, struct vdd *vdd, struct archive_string *id,
3783 isoent = isoent_find_entry(vdd->rootent, ids);
3791 if (vdd->vdd_type == VDD_JOLIET) {
3800 if (vdd->vdd_type == VDD_JOLIET) {
3823 write_VD(struct archive_write *a, struct vdd *vdd)
3835 switch (vdd->vdd_type) {
3877 if (vdd->vdd_type == VDD_JOLIET) {
3894 set_num_733(bp+133, vdd->path_table_size);
3896 set_num_731(bp+141, vdd->location_type_L_path_table);
3900 set_num_732(bp+149, vdd->location_type_M_path_table);
3904 set_directory_record(bp+157, 190-157+1, vdd->rootent,
3905 iso9660, DIR_REC_VD, vdd->vdd_type);
3911 r = set_file_identifier(bp, 319, 446, vdc, a, vdd,
3917 r = set_file_identifier(bp, 447, 574, vdc, a, vdd,
3923 r = set_file_identifier(bp, 575, 702, vdc, a, vdd,
3929 r = set_file_identifier(bp, 703, 739, vdc, a, vdd,
3935 r = set_file_identifier(bp, 740, 776, vdc, a, vdd,
3941 r = set_file_identifier(bp, 777, 813, vdc, a, vdd,
4189 calculate_path_table_size(struct vdd *vdd)
4194 pt = vdd->pathtbl;
4196 for (depth = 0; depth < vdd->max_depth; depth++) {
4216 vdd->path_table_size = size;
4217 vdd->path_table_block =
4225 struct vdd *vdd)
4232 if (vdd->pathtbl[depth].cnt == 0)
4239 ptbl = vdd->pathtbl[depth].sorted;
4240 for (i = 0; i < vdd->pathtbl[depth].cnt; i++) {
4293 write_path_table(struct archive_write *a, int type_m, struct vdd *vdd)
4300 for (depth = 0; depth < vdd->max_depth; depth++) {
4301 r = _write_path_table(a, type_m, depth, vdd);
4315 calculate_directory_descriptors(struct iso9660 *iso9660, struct vdd *vdd,
4322 bs = get_dir_rec_size(iso9660, isoent, DIR_REC_SELF, vdd->vdd_type);
4323 bs += get_dir_rec_size(iso9660, isoent, DIR_REC_PARENT, vdd->vdd_type);
4325 if (isoent->children.cnt <= 0 || (vdd->vdd_type != VDD_JOLIET &&
4326 !iso9660->opt.rr && depth + 1 >= vdd->max_depth))
4342 vdd->vdd_type);
4355 _write_directory_descriptors(struct archive_write *a, struct vdd *vdd,
4367 iso9660, DIR_REC_SELF, vdd->vdd_type);
4369 iso9660, DIR_REC_PARENT, vdd->vdd_type);
4371 if (isoent->children.cnt <= 0 || (vdd->vdd_type != VDD_JOLIET &&
4372 !iso9660->opt.rr && depth + 1 >= vdd->max_depth)) {
4388 vdd->vdd_type);
4397 DIR_REC_NORMAL, vdd->vdd_type);
4408 write_directory_descriptors(struct archive_write *a, struct vdd *vdd)
4414 np = vdd->rootent;
4418 r = _write_directory_descriptors(a, vdd, np, depth);
4421 if (vdd->vdd_type != VDD_JOLIET) {
4441 if (np->subdirs.first != NULL && depth + 1 < vdd->max_depth) {
5346 struct vdd *vdd)
5351 vdd->total_dir_block = 0;
5353 np = vdd->rootent;
5358 iso9660, vdd, np, depth);
5359 vdd->total_dir_block += np->dir_block;
5363 vdd->total_dir_block += block;
5366 if (np->subdirs.first != NULL && depth + 1 < vdd->max_depth) {
5793 idr_init(struct iso9660 *iso9660, struct vdd *vdd, struct idr *idr)
5798 if (vdd->vdd_type != VDD_JOLIET) {
6533 isoent_traverse_tree(struct archive_write *a, struct vdd* vdd)
6542 idr_init(iso9660, vdd, &idr);
6543 np = vdd->rootent;
6545 if (vdd->vdd_type == VDD_JOLIET)
6561 if (vdd->vdd_type != VDD_JOLIET &&
6562 !iso9660->opt.rr && depth + 1 >= vdd->max_depth) {
6575 depth + 1 < vdd->max_depth) {
6606 isoent_collect_dirs(struct vdd *vdd, struct isoent *rootent, int depth)
6611 rootent = vdd->rootent;
6615 path_table_add_entry(&(vdd->pathtbl[depth]), np);
6617 if (np->subdirs.first != NULL && depth + 1 < vdd->max_depth) {
6894 isoent_make_path_table_2(struct archive_write *a, struct vdd *vdd,
6902 pt = &vdd->pathtbl[depth];
6918 switch (vdd->vdd_type) {
6946 isoent_alloc_path_table(struct archive_write *a, struct vdd *vdd,
6951 vdd->max_depth = max_depth;
6952 vdd->pathtbl = malloc(sizeof(*vdd->pathtbl) * vdd->max_depth);
6953 if (vdd->pathtbl == NULL) {
6958 for (i = 0; i < vdd->max_depth; i++) {
6959 vdd->pathtbl[i].first = NULL;
6960 vdd->pathtbl[i].last = &(vdd->pathtbl[i].first);
6961 vdd->pathtbl[i].sorted = NULL;
6962 vdd->pathtbl[i].cnt = 0;