svn commit: [25844] trunk/busybox/util-linux
vda at busybox.net
vda at busybox.net
Sat Mar 28 02:18:50 UTC 2009
Author: vda
Date: 2009-03-28 02:18:49 +0000 (Sat, 28 Mar 2009)
New Revision: 25844
Log:
mkfs.vfat: small tweak to comments
Modified:
trunk/busybox/util-linux/mkfs_vfat.c
Changeset:
Modified: trunk/busybox/util-linux/mkfs_vfat.c
===================================================================
--- trunk/busybox/util-linux/mkfs_vfat.c 2009-03-28 02:13:01 UTC (rev 25843)
+++ trunk/busybox/util-linux/mkfs_vfat.c 2009-03-28 02:18:49 UTC (rev 25844)
@@ -429,6 +429,7 @@
// Write filesystem image sequentially (no seeking)
//
{
+ // (a | b) is poor man's max(a, b)
unsigned bufsize = reserved_sect;
//bufsize |= sect_per_fat; // can be quite large
bufsize |= 2; // use this instead
@@ -449,9 +450,10 @@
if (volume_size_sect <= 0xffff)
STORE_LE(boot_blk->volume_size_sect, volume_size_sect);
STORE_LE(boot_blk->media_byte, media_byte);
- // Bad: this would make Linux to think that it's fat12/16
+ // wrong: this would make Linux think that it's fat12/16:
//if (sect_per_fat <= 0xffff)
// STORE_LE(boot_blk->sect_per_fat, sect_per_fat);
+ // works:
//STORE_LE(boot_blk->sect_per_fat, 0);
STORE_LE(boot_blk->sect_per_track, sect_per_track);
STORE_LE(boot_blk->heads, heads);
More information about the busybox-cvs
mailing list