31 |
#define MKISOFS_IGNORE "-follow-links does not always" |
#define MKISOFS_IGNORE "-follow-links does not always" |
32 |
#define MKISOFS_OK "Total translation table size" |
#define MKISOFS_OK "Total translation table size" |
33 |
#define MKISOFS_NOSPACE "No space left on device" |
#define MKISOFS_NOSPACE "No space left on device" |
34 |
|
#define MKISOFS_SUPPORT_ISOV2 "Set ISO9660 conformance level (1..3) or 4 for ISO9660 version 2" |
35 |
|
|
36 |
|
/* on verifie si le support iso9660 version 2 est disponnible ou non */ |
37 |
|
gboolean check_mkisofs() |
38 |
|
{ |
39 |
|
gchar *Lmkisofs = conf_get_string("mkisofs"); |
40 |
|
gchar *Lcommandline, *Lerr = NULL; |
41 |
|
gboolean Lstatus; |
42 |
|
gint Lexit = 0; |
43 |
|
if (!Lmkisofs || !*Lmkisofs) return FALSE; |
44 |
|
|
45 |
|
Lcommandline = g_strdup_printf("%s -help", conf_get_string("mkisofs")); |
46 |
|
Lstatus = g_spawn_command_line_sync(Lcommandline, NULL, &Lerr, &Lexit, NULL); |
47 |
|
g_free(Lcommandline); |
48 |
|
|
49 |
|
Lstatus = (Lstatus == TRUE && Lerr && ((strstr(Lerr, MKISOFS_SUPPORT_ISOV2)))); |
50 |
|
g_free(Lerr); |
51 |
|
|
52 |
|
return Lstatus; |
53 |
|
} |
54 |
|
|
55 |
/* recherche les parametres supplementaires a passer a mkisofs */ |
/* recherche les parametres supplementaires a passer a mkisofs */ |
56 |
gchar *make_image_getextrapara(GHashTable *Ahash, gchar *Aop) |
gchar *make_image_getextrapara(GHashTable *Ahash, gchar *Aop) |