comparison ffstools/tiffs-rd/object.c @ 237:317936902be4

tiffs IVA: regular ls fully implemented
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 26 Jan 2014 21:12:15 +0000
parents 024042383a26
children
comparison
equal deleted inserted replaced
236:254de9560ef3 237:317936902be4
101 chi->end = find_end_of_chunk(inf); 101 chi->end = find_end_of_chunk(inf);
102 chi->len = chi->end - chi->start; 102 chi->len = chi->end - chi->start;
103 } 103 }
104 104
105 void 105 void
106 iterate_seg_file(seghead, callback, callback_data, deleted) 106 iterate_seg_file(seghead, callback, callback_data, deleted, verbose)
107 void (*callback)(); 107 void (*callback)();
108 u_long callback_data; 108 u_long callback_data;
109 { 109 {
110 int ino; 110 int ino;
111 struct inode_info *inf; 111 struct inode_info *inf;
136 fprintf(stderr, 136 fprintf(stderr,
137 "error: segment object at inode #%x: marked deleted, but no sibling\n", 137 "error: segment object at inode #%x: marked deleted, but no sibling\n",
138 ino); 138 ino);
139 return; 139 return;
140 } 140 }
141 if (verbose)
142 printf("seg inode #%x deleted, moved to #%x\n",
143 ino, inf->sibling);
141 ino = inf->sibling; 144 ino = inf->sibling;
142 goto loop; 145 goto loop;
143 default: 146 default:
144 fprintf(stderr, 147 fprintf(stderr,
145 "error: inode #%x: unexpected type %02X when expecting segment (F4)\n", 148 "error: inode #%x: unexpected type %02X when expecting segment (F4)\n",