wok-next annotate busybox/stuff/patches/mkfs_vfat.u @ rev 19875

Up cookutils (973), busybox (1.27.2)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Sep 29 20:57:09 2017 +0300 (2017-09-29)
parents
children 9616e3b57045
rev   line source
al@19875 1 --- busybox-1.27/util-linux/mkfs_vfat.c
al@19875 2 +++ busybox-1.27/util-linux/mkfs_vfat.c
al@19875 3 @@ -239,6 +239,7 @@
al@19875 4 char *device_name;
al@19875 5 uoff_t volume_size_bytes;
al@19875 6 uoff_t volume_size_sect;
al@19875 7 + uint32_t hidden;
al@19875 8 uint32_t total_clust;
al@19875 9 uint32_t volume_id;
al@19875 10 int dev;
al@19875 11 @@ -287,6 +288,7 @@
al@19875 12 // Get image size and sector size
al@19875 13 //
al@19875 14 bytes_per_sect = SECTOR_SIZE;
al@19875 15 + hidden = 0;
al@19875 16 if (!S_ISBLK(st.st_mode)) {
al@19875 17 if (!S_ISREG(st.st_mode)) {
al@19875 18 if (!argv[1])
al@19875 19 @@ -343,6 +345,7 @@
al@19875 20 // hard drive
al@19875 21 sect_per_track = geometry.sectors;
al@19875 22 heads = geometry.heads;
al@19875 23 + hidden = geometry.start;
al@19875 24
al@19875 25 set_cluster_size:
al@19875 26 /* For FAT32, try to do the same as M$'s format command
al@19875 27 @@ -510,7 +513,7 @@
al@19875 28 //STORE_LE(boot_blk->sect_per_fat, 0);
al@19875 29 STORE_LE(boot_blk->sect_per_track, sect_per_track);
al@19875 30 STORE_LE(boot_blk->heads, heads);
al@19875 31 - //STORE_LE(boot_blk->hidden, 0);
al@19875 32 + STORE_LE(boot_blk->hidden, hidden);
al@19875 33 STORE_LE(boot_blk->fat32_volume_size_sect, volume_size_sect);
al@19875 34 STORE_LE(boot_blk->fat32_sect_per_fat, sect_per_fat);
al@19875 35 //STORE_LE(boot_blk->fat32_flags, 0);