mkdosfs: by default align all structures to cluster boundaries

Align all data structures (reserved sectors, FATs, root directory for
FAT12/16) to an even multiple of the cluster size. This means that if
the partition is aligned, so will all clusters be. This adds
significant performance for anything where the physical sector size is
larger than the logical sector size, e.g. flash media or large-sector
hard disks.

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
This commit is contained in:
H. Peter Anvin
2010-01-06 11:18:55 +01:00
committed by Daniel Baumann
parent 171bc07b0c
commit 247ba068d4
2 changed files with 85 additions and 24 deletions

View File

@@ -6,6 +6,9 @@
.SH SYNOPSIS
.B mkdosfs|mkfs.msdos|mkfs.vfat
[
.B \-a
]
[
.B \-A
]
[
@@ -82,6 +85,14 @@ is the number of blocks on the device. If omitted,
automatically determines the file system size.
.SH OPTIONS
.TP
.B \-a
Normally, for any filesystem except very small ones, \fBmkdosfs\fP
will align all the data structures to cluster size, to make sure that
as long as the partition is properly aligned, so will all the data
structures in the filesystem. This option disables alignment; this
may provide a handful of additional clusters of storage at the expense
of much performance on flash media or large-sector hard disks.
.TP
.B \-A
Use Atari variation of the MS-DOS file system. This is default if
\fBmkdosfs\fP is run on an Atari, then this option turns off Atari