Ticket #49 (new bug)

Opened 2 years ago

Last modified 2 years ago

Write image to file

Reported by: bonfire-app@… Owned by: pygi
Priority: major Milestone:
Component: libisofs [old] Version:
Keywords: Cc:

Description

Currently to my knowledge, libisofs can't write an image to a file. There should be an API to do that such as iso_volume_write_to_file (struct iso_volume *volume, const char *path);

Change History

Changed 2 years ago by neeman@…

Personally, I think this belongs in the application using libisofs. The reason is because such a function is only ever useful for one type of program: a command line mkisofs-lookalike. In most of the cases libisofs is used, we probably just want to create an in-memory iso tree and write it straight to a CD. This is how libisofs was designed to work and that's why it provides a burn_source instead of writing to disk. The file test.c (in the tarball i submitted a couple days ago -- it doesn't seem to have made it to subversion) shows how to write an image with libisofs. It isn't much code.

Changed 2 years ago by bonfire-app@…

A convenience function would be very useful nevertheless: - it wouldn't really clutter the sources (I had a look at the example and it's quite short) - it would hide a possible future internal change of libisofs and apps would still be able to write to file without changing a single line of code.

Note: See TracTickets for help on using tickets.