dosfs: Add skip_alignment for msdos_format()

Add skip_alignment parameter of msdos_format_request_param_t.  Delete
cluster_align parameter of msdos_format_request_param_t.

By default the FAT, data cluster, and root directory for FAT12 and FAT16
is aligned on a cluster boundary to optimize performance.

Format changes throughout.
This commit is contained in:
Ralf Kirchner
2012-12-05 14:11:26 +01:00
committed by Sebastian Huber
parent 7fab7fc0cf
commit 5b8d935ab3
5 changed files with 93 additions and 34 deletions

View File

@@ -36,7 +36,7 @@ static int rtems_shell_main_msdos_format(
.fattype = MSDOS_FMT_FATANY,
.media = 0,
.quick_format = TRUE,
.cluster_align = 0,
.skip_alignment = 0,
.info_level = 0
};
@@ -149,7 +149,7 @@ static int rtems_shell_main_msdos_format(
printf (" %-20s: %i\n", "fat type", rqdata.fattype);
printf (" %-20s: %d\n", "media", rqdata.media);
printf (" %-20s: %d\n", "quick_format", rqdata.quick_format);
printf (" %-20s: %" PRIu32 "\n", "cluster align", rqdata.cluster_align);
printf (" %-20s: %s\n", "skip_alignment", (0 == rqdata.skip_alignment) ? "false" : "true");
}
if (msdos_format (driver, &rqdata) < 0) {