disk: Remember the partition number for each volume

Change-Id: Ied6b0a558eec57435f9299f3e3326714f5e3cdca
This commit is contained in:
Aidan MacDonald 2022-12-22 17:47:32 +00:00 committed by Solomon Peachy
parent 028f283ee5
commit fee5013514
2 changed files with 23 additions and 3 deletions

View file

@ -107,6 +107,7 @@
struct volumeinfo
{
int drive; /* drive number */
int partition; /* partition number (0 for superfloppy drives) */
};
/* Volume-centric functions (in disk.c) */
@ -131,4 +132,6 @@ static inline int volume_drive(int volume)
}
#endif /* HAVE_MULTIDRIVE */
int volume_partition(int volume);
#endif /* __MV_H__ */