def is_disk(dev, bspec=None, uspec=None):

    # Filtering by udevspec
    if uspec is None:
        uspec = udevreport(dev)
    if uspec.get('ID_CDROM') == '1':
        return False
    if uspec.get('DEVTYPE') == 'partition':
        return False
    if 'MAJOR' in uspec and int(uspec['MAJOR']) not in VALID_MAJORS:
        return False

    # Filtering by blockdev spec
    if bspec is None:
        bspec = blockdevreport(dev)
    if bspec.get('ro') == '1':
        return False

    return True
Create a comment for an existing sequence
dataset/ETHPy150Open openstack/bareon/bareon/utils/hardware.py/is_disk--crossover with--dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_sequence.py/SequenceToSqlTestCase.test_comment_on_sequence