/* Check for the standard PBS 0xaa55 signature. 
In the given buffer "*buf", this function looks at the standard offset to confirm the presence of the standard sector-0 PBS signature, nominally "0xaa55". */
RtStatus_t FileSystemBootSectorVerify(uint8_t *buf)
/* Check for the standard PBS 0xaa55 signature. 
In the given buffer "*buf", this function looks at the standard offset to confirm the presence of the standard sector-0 PBS signature, nominally "0xaa55". */
RtStatus_t FileSystemBootSectorVerify(uint8_t *buf)
{
    int32_t signature;
    signature = FSGetWord((uint8_t *) buf, BPB_AND_FSI_SIGNATURE_OFFSET_512B_SECTOR);
    if (signature == BOOT_SECTOR_SIGNATURE) {
        return SUCCESS;
    } else {
        return ERROR_OS_FILESYSTEM_FILESYSTEM_NOT_FOUND;
    }
}