bfsFormat()
PROTOTYPE
#include <bfs.h>
void bfsFormat(void);
DESCRIPTION
bfsFormat() deletes every file on the volume. It clears the file table and extent lists in RAM and deletes all metadata in flash. After bfsFormat() returns, the file user data still exists on the flash media, but you can’t open any file to access it, and as you create new files, the previous user data will be erased and overwritten.
EXAMPLE
/***********************************************************************/
/* sh_format: Erase all fnodes on volume blocks and clear metadata */
/* */
/* Input: unused = rest of line from user */
/* */
/***********************************************************************/
static void sh_format(char *cmd_line)
{
bfsFormat();
} /*lint !e818*/