wok annotate busybox/stuff/busybox-1.28-mkfs_vfat.u @ rev 20248
Up alsa (1.1.5) again
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 12 15:28:31 2018 +0100 (2018-03-12) |
parents | |
children |
rev | line source |
---|---|
pascal@20205 | 1 --- busybox-1.28/util-linux/mkfs_vfat.c |
pascal@20205 | 2 +++ busybox-1.28/util-linux/mkfs_vfat.c |
pascal@20205 | 3 @@ -239,6 +239,7 @@ |
pascal@20205 | 4 char *device_name; |
pascal@20205 | 5 uoff_t volume_size_bytes; |
pascal@20205 | 6 uoff_t volume_size_sect; |
pascal@20205 | 7 + uint32_t hidden; |
pascal@20205 | 8 uint32_t total_clust; |
pascal@20205 | 9 uint32_t volume_id; |
pascal@20205 | 10 int dev; |
pascal@20205 | 11 @@ -288,6 +289,7 @@ |
pascal@20205 | 12 // Get image size and sector size |
pascal@20205 | 13 // |
pascal@20205 | 14 bytes_per_sect = SECTOR_SIZE; |
pascal@20205 | 15 + hidden = 0; |
pascal@20205 | 16 if (!S_ISBLK(st.st_mode)) { |
pascal@20205 | 17 if (!S_ISREG(st.st_mode)) { |
pascal@20205 | 18 if (!argv[1]) |
pascal@20205 | 19 @@ -344,6 +346,7 @@ |
pascal@20205 | 20 // hard drive |
pascal@20205 | 21 sect_per_track = geometry.sectors; |
pascal@20205 | 22 heads = geometry.heads; |
pascal@20205 | 23 + hidden = geometry.start; |
pascal@20205 | 24 |
pascal@20205 | 25 set_cluster_size: |
pascal@20205 | 26 /* For FAT32, try to do the same as M$'s format command |
pascal@20205 | 27 @@ -511,7 +514,7 @@ |
pascal@20205 | 28 //STORE_LE(boot_blk->sect_per_fat, 0); |
pascal@20205 | 29 STORE_LE(boot_blk->sect_per_track, sect_per_track); |
pascal@20205 | 30 STORE_LE(boot_blk->heads, heads); |
pascal@20205 | 31 - //STORE_LE(boot_blk->hidden, 0); |
pascal@20205 | 32 + STORE_LE(boot_blk->hidden, hidden); |
pascal@20205 | 33 STORE_LE(boot_blk->fat32_volume_size_sect, volume_size_sect); |
pascal@20205 | 34 STORE_LE(boot_blk->fat32_sect_per_fat, sect_per_fat); |
pascal@20205 | 35 //STORE_LE(boot_blk->fat32_flags, 0); |