summaryrefslogtreecommitdiff
path: root/firmware/common/disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/disk.c')
-rw-r--r--firmware/common/disk.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/common/disk.c b/firmware/common/disk.c
index 9fb73f0070..c26fdb37a4 100644
--- a/firmware/common/disk.c
+++ b/firmware/common/disk.c
@@ -48,6 +48,9 @@
48static struct partinfo part[8]; /* space for 4 partitions on 2 drives */ 48static struct partinfo part[8]; /* space for 4 partitions on 2 drives */
49static int vol_drive[NUM_VOLUMES]; /* mounted to which drive (-1 if none) */ 49static int vol_drive[NUM_VOLUMES]; /* mounted to which drive (-1 if none) */
50 50
51#ifdef MAX_LOG_SECTOR_SIZE
52int disk_sector_multiplier = 1;
53#endif
51struct partinfo* disk_init(IF_MV_NONVOID(int drive)) 54struct partinfo* disk_init(IF_MV_NONVOID(int drive))
52{ 55{
53 int i; 56 int i;
@@ -168,6 +171,8 @@ int disk_mount(int drive)
168 mounted++; 171 mounted++;
169 vol_drive[volume] = drive; /* remember the drive for this volume */ 172 vol_drive[volume] = drive; /* remember the drive for this volume */
170 volume = get_free_volume(); /* prepare next entry */ 173 volume = get_free_volume(); /* prepare next entry */
174 if (drive == 0)
175 disk_sector_multiplier = j;
171 break; 176 break;
172 } 177 }
173 } 178 }