Does rtems_rfs_format format whole disk_device

in RTEMS FileSystem

int rtems_rfs_format (const char* name, const rtems_rfs_format_config* config)

i see rtems_rfs_format_config struct have config.block_size but no attribute like config.block_count

typedef struct _rtems_rfs_format_config
{
  size_t block_size;
  size_t group_blocks;
  size_t group_inodes;
  int inode_overhead;
  size_t max_name_length;
  bool initialise_inodes;
  bool verbose;
} rtems_rfs_format_config;

its safe to assume it formats whole disk_device in the path specified by name

if it does than is it ideal to always format the whole disk?

I think it is safe to assume this is the case. It has been a while since I looked at this code to be sure.