def __init__(self, device=None): VolumeLabel.__init__(self) try: fs = ocfs2.Filesystem(device) self.set_text(fs.fs_super.s_label) except ocfs2.error: pass
def __init__(self): VolumeLabel.__init__(self) self.set_text('oracle')