wok annotate busybox/stuff/busybox-1.31-mkfs_vfat.u @ rev 23912

linux: add CONFIG_I2C_HID
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 16 10:22:39 2020 +0000 (2020-08-16)
parents
children
rev   line source
pascal@21761 1 --- busybox-1.31/util-linux/mkfs_vfat.c
pascal@21761 2 +++ busybox-1.31/util-linux/mkfs_vfat.c
pascal@21761 3 @@ -226,6 +226,7 @@
pascal@21761 4 char *device_name;
pascal@21761 5 uoff_t volume_size_bytes;
pascal@21761 6 uoff_t volume_size_sect;
pascal@21761 7 + uint32_t hidden;
pascal@21761 8 uint32_t total_clust;
pascal@21761 9 uint32_t volume_id;
pascal@21761 10 int dev;
pascal@21761 11 @@ -275,6 +276,7 @@
pascal@21761 12 // Get image size and sector size
pascal@21761 13 //
pascal@21761 14 bytes_per_sect = SECTOR_SIZE;
pascal@21761 15 + hidden = 0;
pascal@21761 16 if (!S_ISBLK(st.st_mode)) {
pascal@21761 17 if (!S_ISREG(st.st_mode)) {
pascal@21761 18 if (!argv[1])
pascal@21761 19 @@ -331,6 +333,7 @@
pascal@21761 20 // hard drive
pascal@21761 21 sect_per_track = geometry.sectors;
pascal@21761 22 heads = geometry.heads;
pascal@21761 23 + hidden = geometry.start;
pascal@21761 24
pascal@21761 25 set_cluster_size:
pascal@21761 26 /* For FAT32, try to do the same as M$'s format command
pascal@21761 27 @@ -498,7 +501,7 @@
pascal@21761 28 //STORE_LE(boot_blk->sect_per_fat, 0);
pascal@21761 29 STORE_LE(boot_blk->sect_per_track, sect_per_track);
pascal@21761 30 STORE_LE(boot_blk->heads, heads);
pascal@21761 31 - //STORE_LE(boot_blk->hidden, 0);
pascal@21761 32 + STORE_LE(boot_blk->hidden, hidden);
pascal@21761 33 STORE_LE(boot_blk->fat32_volume_size_sect, volume_size_sect);
pascal@21761 34 STORE_LE(boot_blk->fat32_sect_per_fat, sect_per_fat);
pascal@21761 35 //STORE_LE(boot_blk->fat32_flags, 0);