Expose RockRidge option.

This commit is contained in:
Vreixo Formoso 2007-12-27 10:43:06 +01:00
parent c9957cb25e
commit 941e2022e8
3 changed files with 12 additions and 7 deletions

View File

@ -28,7 +28,9 @@ int main(int argc, char **argv)
FILE *fd;
Ecma119WriteOpts opts = {
1, /* level */
0, /* flags */
1, /* rockridge */
0, /* omit_version_numbers */
0, /* allow_deep_paths */
0 /* sort files */
};

View File

@ -730,10 +730,10 @@ int ecma119_image_new(IsoImage *src, Ecma119WriteOpts *opts,
iso_image_ref(src);
target->iso_level = opts->level;
target->rockridge = 1; //TODO
target->rockridge = opts->rockridge;
target->ino = 0;
target->omit_version_numbers = opts->omit_version_numbers;
target->allow_deep_paths = 0; //TODO
target->allow_deep_paths = opts->allow_deep_paths;
target->sort_files = opts->sort_files;
target->now = time(NULL);

View File

@ -61,10 +61,13 @@ enum IsoHideNodeFlag {
typedef struct {
//int volnum; /**< The volume in the set which you want to write (usually 0) */
int level; /**< ISO level to write at. */
int flags; /**< Which extensions to support. */
/** Which extensions to support. */
unsigned int rockridge:1;
/* relaxed constraints */
unsigned int omit_version_numbers:1;
unsigned int allow_deep_paths:1;
//int relaxed_constraints; /**< see ecma119_relaxed_constraints_flag */
//unsigned int copy_eltorito:1;