VxWorks Reference Manual : Libraries

usrFd

NAME

usrFd - floppy disk initialization

ROUTINES

usrFdConfig( ) - mount a DOS file system from a floppy disk


Libraries : Routines

usrFdConfig( )

NAME

usrFdConfig( ) - mount a DOS file system from a floppy disk

SYNOPSIS

STATUS usrFdConfig
    (
    int    drive,   /* drive number of floppy disk (0 - 3) */
    int    type,    /* type of floppy disk */
    char * fileName /* mount point */
    )

DESCRIPTION

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:

The fileName parameter is the mount point, e.g., /fd0/.

NOTE

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.

RETURNS

OK or ERROR.

SEE ALSO

usrFd, VxWorks Programmer's Guide: I/O System, Local File Systems, Intel i386/i486 Appendix