wok view busybox/stuff/busybox-1.27-mkfs_vfat.u @ rev 22042

gcc83-lib-base: do NOT provide gcc-lib-base
Currently BOTH gcc-lib-base and gcc83-lib-base are installed on my SliTaz system. So, with the current (and longstanding) tazpkg limitations I can't update just gcc-lib-base: tazpkg always updates gcc83-lib-base for me instead. Now I can't run Firefox, Vivaldi, Chrome, etc. I think because of gcc-lib-base, but I not sure 1bsolutely.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 22 12:55:54 2019 +0300 (2019-10-22)
parents
children
line source
1 --- busybox-1.27/util-linux/mkfs_vfat.c
2 +++ busybox-1.27/util-linux/mkfs_vfat.c
3 @@ -239,6 +239,7 @@
4 char *device_name;
5 uoff_t volume_size_bytes;
6 uoff_t volume_size_sect;
7 + uint32_t hidden;
8 uint32_t total_clust;
9 uint32_t volume_id;
10 int dev;
11 @@ -287,6 +288,7 @@
12 // Get image size and sector size
13 //
14 bytes_per_sect = SECTOR_SIZE;
15 + hidden = 0;
16 if (!S_ISBLK(st.st_mode)) {
17 if (!S_ISREG(st.st_mode)) {
18 if (!argv[1])
19 @@ -343,6 +345,7 @@
20 // hard drive
21 sect_per_track = geometry.sectors;
22 heads = geometry.heads;
23 + hidden = geometry.start;
25 set_cluster_size:
26 /* For FAT32, try to do the same as M$'s format command
27 @@ -510,7 +513,7 @@
28 //STORE_LE(boot_blk->sect_per_fat, 0);
29 STORE_LE(boot_blk->sect_per_track, sect_per_track);
30 STORE_LE(boot_blk->heads, heads);
31 - //STORE_LE(boot_blk->hidden, 0);
32 + STORE_LE(boot_blk->hidden, hidden);
33 STORE_LE(boot_blk->fat32_volume_size_sect, volume_size_sect);
34 STORE_LE(boot_blk->fat32_sect_per_fat, sect_per_fat);
35 //STORE_LE(boot_blk->fat32_flags, 0);