VxWorks Reference Manual : Libraries
usrFd - floppy disk initialization
usrFdConfig( ) - mount a DOS file system from a floppy disk
usrFdConfig( ) - mount a DOS file system from a floppy disk
STATUS usrFdConfig ( int drive, /* drive number of floppy disk (0 - 3) */ int type, /* type of floppy disk */ char * fileName /* mount point */ )
This routine mounts a DOS file system from a floppy disk device.
The drive parameter is the drive number of the floppy disk; valid values are 0 to 3.
The type parameter specifies the type of diskette, which is described in the structure table fdTypes[] in sysLib.c. type is an index to the table. Currently the table contains two diskette types:
- A type of 0 indicates the first entry in the table (3.5" 2HD, 1.44MB);
- A type of 1 indicates the second entry in the table (5.25" 2HD, 1.2MB).
The fileName parameter is the mount point, e.g., /fd0/.
Do not attempt to unmount a volume that was mounted with usrFdConfig( ) using dosFsVolUnmount( ). usrFdConfig( ) does not return the DOS_VOL_CONFIG structure required by dosFsVolUnmount( ). Instead use ioctl( ) with FIOUNMOUNT which accesses the volume information via the file descriptor.
OK or ERROR.
usrFd, VxWorks Programmer's Guide: I/O System, Local File Systems, Intel i386/i486 Appendix