wok diff busybox/stuff/busybox-1.30-mkfs_vfat.u @ rev 21015

updated gujin (2.8.6 -> 2.8.7)
author Hans-G?nter Theisgen
date Sun Mar 10 08:09:36 2019 +0100 (2019-03-10)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/busybox/stuff/busybox-1.30-mkfs_vfat.u	Sun Mar 10 08:09:36 2019 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +--- busybox-1.30/util-linux/mkfs_vfat.c
     1.5 ++++ busybox-1.30/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);