forked from Imagelibrary/rtems
dosfs: Fix request evaluation
Return the ability to set a cluster size other than one sector for unaligned volumes.
This commit is contained in:
committed by
Sebastian Huber
parent
73719950c0
commit
253b3e5a67
@@ -563,11 +563,7 @@ static int msdos_format_determine_fmt_params
|
|||||||
* Skip aligning structures or d align them
|
* Skip aligning structures or d align them
|
||||||
*/
|
*/
|
||||||
if (ret_val == 0 && rqdata != NULL)
|
if (ret_val == 0 && rqdata != NULL)
|
||||||
{
|
|
||||||
fmt_params->skip_alignment = rqdata->skip_alignment;
|
fmt_params->skip_alignment = rqdata->skip_alignment;
|
||||||
if (fmt_params->skip_alignment)
|
|
||||||
fmt_params->sectors_per_cluster = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ret_val == 0) {
|
if (ret_val == 0) {
|
||||||
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
|
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
|
||||||
|
|||||||
Reference in New Issue
Block a user