diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-28 02:18:49 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-28 02:18:49 +0000 |
commit | 020f465cbd997a368f4bb0f82e6025433d2a808a (patch) | |
tree | dd8d38524afe1f8a28257e25307dc5f5c74c5574 /util-linux/mkfs_vfat.c | |
parent | 9d04b6b6304f65f4a5118664cc503fdc0f68ea28 (diff) | |
download | busybox-w32-020f465cbd997a368f4bb0f82e6025433d2a808a.tar.gz busybox-w32-020f465cbd997a368f4bb0f82e6025433d2a808a.tar.bz2 busybox-w32-020f465cbd997a368f4bb0f82e6025433d2a808a.zip |
mkfs.vfat: small tweak to comments
Diffstat (limited to 'util-linux/mkfs_vfat.c')
-rw-r--r-- | util-linux/mkfs_vfat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util-linux/mkfs_vfat.c b/util-linux/mkfs_vfat.c index 930fd45cc..95ebcbfba 100644 --- a/util-linux/mkfs_vfat.c +++ b/util-linux/mkfs_vfat.c | |||
@@ -429,6 +429,7 @@ int mkfs_vfat_main(int argc UNUSED_PARAM, char **argv) | |||
429 | // Write filesystem image sequentially (no seeking) | 429 | // Write filesystem image sequentially (no seeking) |
430 | // | 430 | // |
431 | { | 431 | { |
432 | // (a | b) is poor man's max(a, b) | ||
432 | unsigned bufsize = reserved_sect; | 433 | unsigned bufsize = reserved_sect; |
433 | //bufsize |= sect_per_fat; // can be quite large | 434 | //bufsize |= sect_per_fat; // can be quite large |
434 | bufsize |= 2; // use this instead | 435 | bufsize |= 2; // use this instead |
@@ -449,9 +450,10 @@ int mkfs_vfat_main(int argc UNUSED_PARAM, char **argv) | |||
449 | if (volume_size_sect <= 0xffff) | 450 | if (volume_size_sect <= 0xffff) |
450 | STORE_LE(boot_blk->volume_size_sect, volume_size_sect); | 451 | STORE_LE(boot_blk->volume_size_sect, volume_size_sect); |
451 | STORE_LE(boot_blk->media_byte, media_byte); | 452 | STORE_LE(boot_blk->media_byte, media_byte); |
452 | // Bad: this would make Linux to think that it's fat12/16 | 453 | // wrong: this would make Linux think that it's fat12/16: |
453 | //if (sect_per_fat <= 0xffff) | 454 | //if (sect_per_fat <= 0xffff) |
454 | // STORE_LE(boot_blk->sect_per_fat, sect_per_fat); | 455 | // STORE_LE(boot_blk->sect_per_fat, sect_per_fat); |
456 | // works: | ||
455 | //STORE_LE(boot_blk->sect_per_fat, 0); | 457 | //STORE_LE(boot_blk->sect_per_fat, 0); |
456 | STORE_LE(boot_blk->sect_per_track, sect_per_track); | 458 | STORE_LE(boot_blk->sect_per_track, sect_per_track); |
457 | STORE_LE(boot_blk->heads, heads); | 459 | STORE_LE(boot_blk->heads, heads); |