'Run filesystem check
:param args: arguments to filesystem check tool. Default is "-n"
which works on most tools.'

def fsck(self, args='-fy', record=True):

    fsck_cmd = ('%s    %s    %s' % (self.get_fsck_exec(), self.device, args))
    if (self.fstype == 'reiserfs'):
        fsck_cmd = ('yes    "Yes"    |    ' + fsck_cmd)
    sys.stdout.flush()
    try:
        utils.system_output(fsck_cmd)
    except Exception:
        if record:
            self.job.record('FAIL', None, fsck_cmd, error.format_error())
        raise error.TestError('Fsck    found    errors    with    the    underlying    file    system')
    else:
        if record:
            self.job.record('GOOD', None, fsck_cmd)
