~ubuntu-branches/ubuntu/hoary/cdrtools/hoary

« back to all changes in this revision

Viewing changes to mkisofs/vms.c

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2002-04-09 10:03:06 UTC
  • Revision ID: james.westby@ubuntu.com-20020409100306-0mibp3jcbifarjue
Tags: 4:1.10-7
* The seventh-time-lucky release. This should go into Woody.
* Simplified the old crap^h^h^h^hdebconf interaction part, moved makedev
  calls to cdrecord.postinst, since makedev != essential. Closes: #141905

Show diffs side-by-side

added added

removed removed

Lines of Context:
288
288
extern unsigned int last_extent_written;
289
289
 
290
290
int
291
 
vms_write_one_file(char *filename, int size, FILE * outfile)
 
291
vms_write_one_file(struct deferred_write * dwpnt, FILE * outfile)
292
292
{
293
293
        int             status,
294
294
                        i;
296
296
        int             count;
297
297
        int             use;
298
298
        int             remain;
299
 
 
300
 
        open_file(filename);
301
 
 
302
 
        remain = size;
 
299
        int             offset = 0;
 
300
 
 
301
        open_file(dwpnt->name);
 
302
 
 
303
        remain = dwpnt->size;
303
304
 
304
305
        while (remain > 0) {
305
306
                use = (remain > SECTOR_SIZE * NSECT - 1 ? NSECT * SECTOR_SIZE : remain);
308
309
                rab->rab$l_ubf = buffer;
309
310
                rab->rab$w_usz = sizeof(buffer);
310
311
                status = sys$read(rab);
 
312
                if (dwpnt->filter)
 
313
                        (* dwpnt->filter)(buffer, use, offset);
311
314
                fwrite(buffer, 1, use, outfile);
312
315
                last_extent_written += use / SECTOR_SIZE;
313
316
                if ((last_extent_written % 1000) < use / SECTOR_SIZE)
314
317
                        fprintf(stderr, "%d..", last_extent_written);
315
318
                remain -= use;
 
319
                offset += use;
316
320
        };
317
321
 
318
322
        close_file(rab);