Done major changes to libisofs, including multisession and reading support

This commit is contained in:
Mario Danic
2007-08-27 22:51:48 +00:00
parent a4e0041128
commit df04ee014e
19 changed files with 573 additions and 117 deletions

View File

@ -101,6 +101,11 @@ int main(int argc, char **argv)
return 1;
}
if (!iso_init()) {
err(1, "Can't init libisofs");
}
iso_msgs_set_severities("NEVER", "ALL", "");
rsrc = data_source_from_file(argv[optind+2]);
if (rsrc == NULL) {
printf ("Can't open device\n");
@ -114,6 +119,11 @@ int main(int argc, char **argv)
ropts.block = atoi(argv[optind]);
ropts.norock = 0;
ropts.nojoliet = 0;
ropts.preferjoliet = 0;
ropts.mode = 0555;
ropts.uid = 0;
ropts.gid = 0;
volset = iso_volset_read(rsrc, &ropts);
if (volset == NULL) {
@ -143,5 +153,7 @@ int main(int argc, char **argv)
}
fclose(fd);
iso_finish();
return 0;
}