OvmfPkg/FswHfsPlus/fsw_hfsplus.c
/* Get in-depth information on a volume.
 */
Get in-depth information on a volume.
Get in - depth information on a volume .
static fsw_status_t
fsw_hfsplus_vol_stat(struct fsw_hfsplus_volume *v, struct fsw_volume_stat *s)
{
    fsw_u32 bs = fsw_u32_be_swap(v->vh->blockSize);
    s->total_bytes = bs * fsw_u32_be_swap(v->vh->totalBlocks);
    s->free_bytes = bs * fsw_u32_be_swap(v->vh->freeBlocks);
    return FSW_SUCCESS;
}
static fsw_status_t fsw_hfsplus_vol_stat ( struct fsw_hfsplus_volume * v , struct fsw_volume_stat * s ) { fsw_u32 bs = fsw_u32_be_swap ( v -> vh -> blockSize ) ; s -> total_bytes = bs * fsw_u32_be_swap ( v -> vh -> totalBlocks ) ; s -> free_bytes = bs * fsw_u32_be_swap ( v -> vh -> freeBlocks ) ; return FSW_SUCCESS ; }
Get in-depth information on a volume.
Get in - depth information on a volume .