H. Peter Anvin 62f806a292 mkdosfs: correct alignment of the root directory.
Correct the code to align the root directory; it was broken before
since bs.dir_entries had already been set at the point of alignment.
This patch removes the dual use of bs.dir_entries and root_dir_entries
to carry the same information: the information is carried in
root_dir_entires exclusively, and then bs.dir_entries is set inside
setup_tables() at a late point.

The code to align the root directory is also wrapped in
if (align_structures); this avoids rounding the number of root
directory entries up to a whole sector when used with -a
(i.e. preserves the previous behavior.)

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:51:07 +01:00
2013-01-23 12:51:03 +01:00
2013-01-23 12:50:22 +01:00
Description
No description provided
292 KiB
Languages
C 97.9%
Makefile 1.9%
Shell 0.2%