wok diff busybox/stuff/busybox-1.27-mkfs_vfat.u @ rev 22159

updated xdotool (2.20110530.1 -> 3.20160805.1)
author Hans-G?nter Theisgen
date Thu Nov 07 11:03:59 2019 +0100 (2019-11-07)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/busybox/stuff/busybox-1.27-mkfs_vfat.u	Thu Nov 07 11:03:59 2019 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +--- busybox-1.27/util-linux/mkfs_vfat.c
     1.5 ++++ busybox-1.27/util-linux/mkfs_vfat.c
     1.6 +@@ -239,6 +239,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 +@@ -287,6 +288,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 +@@ -343,6 +345,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 +@@ -510,7 +513,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);