Created API call for command -for_backup

This commit is contained in:
Thomas Schmitt 2024-09-05 17:12:16 +02:00
parent 122c80ff1a
commit b9d72dbd8a
5 changed files with 22 additions and 9 deletions

View File

@ -377,6 +377,7 @@ isoburn_toc_disc_get_sectors_v2;
isoburn_toc_session_get_sectors_v2;
isoburn_toc_track_get_emul_v2;
Xorriso_option_chattri;
Xorriso_option_for_backup;
Xorriso_option_genisoimage_completion;
Xorriso_option_lfa_flags;
} LIBISOBURN1;

View File

@ -1661,6 +1661,20 @@ sorry_ex:
}
/* Command -for_backup */
int Xorriso_option_for_backup(struct XorrisO *xorriso, int flag)
{
Xorriso_option_hardlinks(xorriso, "on", 0);
Xorriso_option_acl(xorriso, "on", 0);
Xorriso_option_xattr(xorriso, "any", 0);
Xorriso_option_md5(xorriso, "on", 0);
if(xorriso->lfa_flags_default & 8)
Xorriso_option_lfa_flags(xorriso,
"default:on:import_only_settable:restore_mask=aAcCdDijmPsStTux", 0);
return(1);
}
/* Option -fs */
int Xorriso_option_fs(struct XorrisO *xorriso, char *size, int flag)
{

View File

@ -1432,14 +1432,7 @@ next_command:;
ret= Xorriso_option_follow(xorriso, arg1, 0);
} else if(strcmp(cmd,"for_backup")==0) {
Xorriso_option_hardlinks(xorriso, "on", 0);
Xorriso_option_acl(xorriso, "on", 0);
Xorriso_option_xattr(xorriso, "any", 0);
Xorriso_option_md5(xorriso, "on", 0);
if(xorriso->lfa_flags_default & 8)
Xorriso_option_lfa_flags(xorriso,
"default:on:import_only_settable:restore_mask=aAcCdDijmPsStTux", 0);
ret= 1;
ret= Xorriso_option_for_backup(xorriso, 0);
} else if(strcmp(cmd,"format")==0) {
(*idx)++;

View File

@ -1639,6 +1639,11 @@ int Xorriso_option_follow(struct XorrisO *xorriso, char *mode, int flag);
@since 1.5.8
*/
/* Command -for_backup */
/* (available as command since 0.4.0, but not as API call) */
/* @since 1.5.8 */
int Xorriso_option_for_backup(struct XorrisO *xorriso, int flag);
/* Command -fs */
/* @since 0.1.0 */
int Xorriso_option_fs(struct XorrisO *xorriso, char *size, int flag);

View File

@ -1 +1 @@
#define Xorriso_timestamP "2024.09.02.130343"
#define Xorriso_timestamP "2024.09.05.151148"