Skip to end of metadata
Go to start of metadata

Description

Open a volume & mount on the file system.

Files

fs_core_vol.h/fs_core_vol.c

Prototype

 

FS_VOL_HANDLE  FSVol_Open (      FS_BLK_DEV_HANDLE   blk_dev_handle,
FS_PARTITION_NBR partition_nbr,
const CPU_CHAR *vol_name,
FS_FLAGS open_opt,
RTOS_ERR *p_err)

 

Arguments

blk_dev_handle

Block device handle.

partition_nbr

Number of the partition to be opened. Maximum of 4 partitions allowed per media. 

vol_name

Volume name to be assigned to the opened volume (see Note #1).

open_opt

Open options. Any OR'd combination among:

FS_VOL_OPT_DFLT                                 Write operations allowed, auto sync disabled, default sys-specific options.
FS_VOL_OPT_ACCESS_MODE_RD_ONLY   Write operations disallowed.
FS_VOL_OPT_AUTO_SYNC                       Auto sync enabled.

p_err

Pointer to variable that will receive the return error code(s) from this function:

RTOS_ERR_NONE
RTOS_ERR_NOT_INIT
RTOS_ERR_VOL_OPENED
RTOS_ERR_NAME_INVALID
RTOS_ERR_VOL_FMT_INVALID
RTOS_ERR_PARTITION_INVALID
RTOS_ERR_BLK_DEV_CORRUPTED
RTOS_ERR_BLK_DEV_CLOSED
RTOS_ERR_IO

Returned Value

Handle to the opened volume.

Notes / Warnings

(1) Volume name MUST be unique across all opened volumes.

  • No labels