Synopsis
CTL_STATUS_t ctl_ms_mount_volume(const char *volume);
Description

ctl_ms_mount_volume mounts the volume vol using the FAT block driver driver. vol must be first initialized using ctl_ms_init_volume.

ctl_ms_mount_volume first reads boot sector (sector zero) of the volume and tries to determine if the volume is in super-floppy format or has a partition table. If the volume is in super-floppy format, it is mounted directly. If the volume has a partition map, the first valid partition on the drive is mounted.

If you need to mount a particular partition or a partition at a non-standard address, you can use ctl_ms_mount_volume.

Return Value

ctl_ms_mount_volume returns a standard status code.

Thread Safety

ctl_ms_mount_volume is thread-safe.