'Return the proper mkfs executable based on self.fstype'

def get_fsck_exec(self):

    if (self.fstype == 'ext4'):
        if os.path.exists('/sbin/fsck.ext4'):
            return 'fsck'
        auto_fsck = os.path.join(self.job.toolsdir, 'fsck.ext4dev')
        if os.path.exists(auto_fsck):
            return auto_fsck
    else:
        return 'fsck'
    raise NameError(('Error    creating    partition    for    filesystem    type    %s' % self.fstype))
