New API calls isoburn_igopt_set_hfsp_block_size() and isoburn_igopt_get_hfsp_block_size()
This commit is contained in:
@@ -1797,6 +1797,42 @@ int isoburn_igopt_set_hfsp_serial_number(struct isoburn_imgen_opts *opts,
|
||||
int isoburn_igopt_get_hfsp_serial_number(struct isoburn_imgen_opts *opts,
|
||||
uint8_t serial_number[8]);
|
||||
|
||||
/** Set the allocation block size for HFS+ production and the block size
|
||||
for layout and address unit of Apple Partition map.
|
||||
@since 1.2.4
|
||||
@param opts
|
||||
The option set to be manipulated.
|
||||
@param hfsp_block_size
|
||||
-1 means that this setting shall be left unchanged
|
||||
0 allows the automatic default setting
|
||||
512 and 2048 enforce a size.
|
||||
@param apm_block_size
|
||||
-1 means that this setting shall be left unchanged
|
||||
0 allows the automatic default setting
|
||||
512 and 2048 enforce a size.
|
||||
Size 512 cannot be combined with GPT production.
|
||||
Size 2048 cannot be mounted -t hfsplus by Linux kernels at least up
|
||||
to 2.6.32.
|
||||
@return
|
||||
<=0 = error, 1 = success
|
||||
*/
|
||||
int isoburn_igopt_set_hfsp_block_size(struct isoburn_imgen_opts *opts,
|
||||
int hfsp_block_size, int apm_block_size);
|
||||
|
||||
/** Inquire the current setting made by isoburn_igopt_set_hfsp_block_size
|
||||
@since 1.2.4
|
||||
@param opts
|
||||
The option set to be inquired.
|
||||
@param hfsp_block_size
|
||||
Will be set to a value as described above. Except -1.
|
||||
@param apm_block_size
|
||||
Will be set to a value as described above. Except -1.
|
||||
@return
|
||||
<=0 = error, 1 = success
|
||||
*/
|
||||
int isoburn_igopt_get_hfsp_block_size(struct isoburn_imgen_opts *opts,
|
||||
int *hfsp_block_size, int *apm_block_size);
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* End of Options for image generation */
|
||||
|
Reference in New Issue
Block a user