New -osirrox option sparse= controls extraction into sparse files
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
|
||||
/* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images.
|
||||
|
||||
Copyright 2007-2019 Thomas Schmitt, <scdbackup@gmx.net>
|
||||
Copyright 2007-2020 Thomas Schmitt, <scdbackup@gmx.net>
|
||||
|
||||
Provided under GPL version 2 or later.
|
||||
|
||||
@ -1367,3 +1367,18 @@ int Xorriso__format_guid(uint8_t guid[16], char *text, int flag)
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
int Xorriso__parse_size_param(char *cpt, int key_l, int l, double *num)
|
||||
{
|
||||
char text[16];
|
||||
|
||||
*num= 0.0;
|
||||
if(l <= key_l || l >= key_l + 16)
|
||||
return(0);
|
||||
strncpy(text, cpt + key_l, l - key_l);
|
||||
text[l - key_l]= 0;
|
||||
*num= Scanf_io_size(text, 0);
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user