wok-current annotate busybox/stuff/busybox-1.30-mkfs_vfat.u @ rev 22502
updated aspell-pt_BR (20080707-0 -> 20131030.12.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jan 01 09:58:39 2020 +0100 (2020-01-01) |
parents | |
children |
rev | line source |
---|---|
pascal@20652 | 1 --- busybox-1.30/util-linux/mkfs_vfat.c |
pascal@20652 | 2 +++ busybox-1.30/util-linux/mkfs_vfat.c |
pascal@20652 | 3 @@ -226,6 +226,7 @@ |
pascal@20652 | 4 char *device_name; |
pascal@20652 | 5 uoff_t volume_size_bytes; |
pascal@20652 | 6 uoff_t volume_size_sect; |
pascal@20652 | 7 + uint32_t hidden; |
pascal@20652 | 8 uint32_t total_clust; |
pascal@20652 | 9 uint32_t volume_id; |
pascal@20652 | 10 int dev; |
pascal@20652 | 11 @@ -275,6 +276,7 @@ |
pascal@20652 | 12 // Get image size and sector size |
pascal@20652 | 13 // |
pascal@20652 | 14 bytes_per_sect = SECTOR_SIZE; |
pascal@20652 | 15 + hidden = 0; |
pascal@20652 | 16 if (!S_ISBLK(st.st_mode)) { |
pascal@20652 | 17 if (!S_ISREG(st.st_mode)) { |
pascal@20652 | 18 if (!argv[1]) |
pascal@20652 | 19 @@ -331,6 +333,7 @@ |
pascal@20652 | 20 // hard drive |
pascal@20652 | 21 sect_per_track = geometry.sectors; |
pascal@20652 | 22 heads = geometry.heads; |
pascal@20652 | 23 + hidden = geometry.start; |
pascal@20652 | 24 |
pascal@20652 | 25 set_cluster_size: |
pascal@20652 | 26 /* For FAT32, try to do the same as M$'s format command |
pascal@20652 | 27 @@ -498,7 +501,7 @@ |
pascal@20652 | 28 //STORE_LE(boot_blk->sect_per_fat, 0); |
pascal@20652 | 29 STORE_LE(boot_blk->sect_per_track, sect_per_track); |
pascal@20652 | 30 STORE_LE(boot_blk->heads, heads); |
pascal@20652 | 31 - //STORE_LE(boot_blk->hidden, 0); |
pascal@20652 | 32 + STORE_LE(boot_blk->hidden, hidden); |
pascal@20652 | 33 STORE_LE(boot_blk->fat32_volume_size_sect, volume_size_sect); |
pascal@20652 | 34 STORE_LE(boot_blk->fat32_sect_per_fat, sect_per_fat); |
pascal@20652 | 35 //STORE_LE(boot_blk->fat32_flags, 0); |