Example #1
0
 def __init__(self, mountpoint, device=None, filesystem=None):
     MountPoint.__init__(self, device, mountpoint, filesystem)
     try:
         self.hfspath = Alias(self.mountpoint).hfspath
     except ValueError:
         self.hfspath = None
     self.update_diskinfo()
Example #2
0
 def __init__(self,mountpoint,device=None,filesystem=None):
     MountPoint.__init__(self,device,mountpoint,filesystem)
     try:
         self.hfspath = Alias(self.mountpoint).hfspath
     except ValueError:
         self.hfspath = None
     self.update_diskinfo()
Example #3
0
    def __init__(self,device,mountpoint,filesystem):
        MountPoint.__init__(self,device,mountpoint,filesystem)

        if self.device[:len(DM_PREFIX)] == DM_PREFIX:
            for name in os.listdir(MAPPER_PATH):
                dev = os.path.realpath(os.path.join(MAPPER_PATH,name))
                if name == os.path.basename(self.device):
                    self.device = dev
                    break

        self.uuid = None
        for uuid in os.listdir(UUID_PATH):
            dev = os.path.realpath(os.path.join(UUID_PATH,uuid))
            if dev == self.device:
                self.uuid = uuid
                break

        self.label = None
        if os.path.isdir(LABEL_PATH):
            for label in os.listdir(LABEL_PATH):
                dev = os.path.realpath(os.path.join(LABEL_PATH,label))
                if dev == self.device:
                    self.label = label
                    break
Example #4
0
 def __init__(self,device,mountpoint,filesystem):
     MountPoint.__init__(self,device,mountpoint,filesystem)
Example #5
0
 def __init__(self, device, mountpoint, filesystem):
     MountPoint.__init__(self, device, mountpoint, filesystem)