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 4398b35960
commit fc48c23932
19 changed files with 573 additions and 117 deletions

View File

@ -98,6 +98,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]);
if (rsrc == NULL) {
printf ("Can't open device\n");
@ -111,6 +116,11 @@ int main(int argc, char **argv)
ropts.block = 0;
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) {
@ -141,5 +151,7 @@ int main(int argc, char **argv)
}
fclose(fd);
iso_finish();
return 0;
}