wok annotate busybox/stuff/busybox-1.27-mkfs_vfat.u @ rev 21382
updated luafilesystem (1.6.2 -> 1.7.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 22 11:09:43 2019 +0100 (2019-04-22) |
parents | |
children |
rev | line source |
---|---|
pascal@19991 | 1 --- busybox-1.27/util-linux/mkfs_vfat.c |
pascal@19991 | 2 +++ busybox-1.27/util-linux/mkfs_vfat.c |
pascal@19991 | 3 @@ -239,6 +239,7 @@ |
pascal@19991 | 4 char *device_name; |
pascal@19991 | 5 uoff_t volume_size_bytes; |
pascal@19991 | 6 uoff_t volume_size_sect; |
pascal@19991 | 7 + uint32_t hidden; |
pascal@19991 | 8 uint32_t total_clust; |
pascal@19991 | 9 uint32_t volume_id; |
pascal@19991 | 10 int dev; |
pascal@19991 | 11 @@ -287,6 +288,7 @@ |
pascal@19991 | 12 // Get image size and sector size |
pascal@19991 | 13 // |
pascal@19991 | 14 bytes_per_sect = SECTOR_SIZE; |
pascal@19991 | 15 + hidden = 0; |
pascal@19991 | 16 if (!S_ISBLK(st.st_mode)) { |
pascal@19991 | 17 if (!S_ISREG(st.st_mode)) { |
pascal@19991 | 18 if (!argv[1]) |
pascal@19991 | 19 @@ -343,6 +345,7 @@ |
pascal@19991 | 20 // hard drive |
pascal@19991 | 21 sect_per_track = geometry.sectors; |
pascal@19991 | 22 heads = geometry.heads; |
pascal@19991 | 23 + hidden = geometry.start; |
pascal@19991 | 24 |
pascal@19991 | 25 set_cluster_size: |
pascal@19991 | 26 /* For FAT32, try to do the same as M$'s format command |
pascal@19991 | 27 @@ -510,7 +513,7 @@ |
pascal@19991 | 28 //STORE_LE(boot_blk->sect_per_fat, 0); |
pascal@19991 | 29 STORE_LE(boot_blk->sect_per_track, sect_per_track); |
pascal@19991 | 30 STORE_LE(boot_blk->heads, heads); |
pascal@19991 | 31 - //STORE_LE(boot_blk->hidden, 0); |
pascal@19991 | 32 + STORE_LE(boot_blk->hidden, hidden); |
pascal@19991 | 33 STORE_LE(boot_blk->fat32_volume_size_sect, volume_size_sect); |
pascal@19991 | 34 STORE_LE(boot_blk->fat32_sect_per_fat, sect_per_fat); |
pascal@19991 | 35 //STORE_LE(boot_blk->fat32_flags, 0); |