wok-6.x diff busybox/stuff/busybox-1.32-mkfs_vfat.u @ rev 24418
clamtk: replaced perl-gtk2 by perl-gtk3
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 11 09:25:31 2022 +0100 (2022-02-11) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/busybox/stuff/busybox-1.32-mkfs_vfat.u Fri Feb 11 09:25:31 2022 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +--- busybox-1.32/util-linux/mkfs_vfat.c 1.5 ++++ busybox-1.32/util-linux/mkfs_vfat.c 1.6 +@@ -226,6 +226,7 @@ 1.7 + char *device_name; 1.8 + uoff_t volume_size_bytes; 1.9 + uoff_t volume_size_sect; 1.10 ++ uint32_t hidden; 1.11 + uint32_t total_clust; 1.12 + uint32_t volume_id; 1.13 + int dev; 1.14 +@@ -275,6 +276,7 @@ 1.15 + // Get image size and sector size 1.16 + // 1.17 + bytes_per_sect = SECTOR_SIZE; 1.18 ++ hidden = 0; 1.19 + if (!S_ISBLK(st.st_mode)) { 1.20 + if (!S_ISREG(st.st_mode)) { 1.21 + if (!argv[1]) 1.22 +@@ -331,6 +333,7 @@ 1.23 + // hard drive 1.24 + sect_per_track = geometry.sectors; 1.25 + heads = geometry.heads; 1.26 ++ hidden = geometry.start; 1.27 + 1.28 + set_cluster_size: 1.29 + /* For FAT32, try to do the same as M$'s format command 1.30 +@@ -498,7 +501,7 @@ 1.31 + //STORE_LE(boot_blk->sect_per_fat, 0); 1.32 + STORE_LE(boot_blk->sect_per_track, sect_per_track); 1.33 + STORE_LE(boot_blk->heads, heads); 1.34 +- //STORE_LE(boot_blk->hidden, 0); 1.35 ++ STORE_LE(boot_blk->hidden, hidden); 1.36 + STORE_LE(boot_blk->fat32_volume_size_sect, volume_size_sect); 1.37 + STORE_LE(boot_blk->fat32_sect_per_fat, sect_per_fat); 1.38 + //STORE_LE(boot_blk->fat32_flags, 0);