Пример #1
0
 def get_service_config(self):
     fstab = Fstab()
     fstab.read(self.__FSTAB)
     configurations = []
     for l in fstab.get_rozofs_lines():
         o = l.get_rozofs_options()
         configurations.append(RozofsMountConfig(o["host"], o["path"],
                                                 o["instance"],
                                                 o["mountpoint"]))
     return configurations
Пример #2
0
 def _list_mountpoint(self):
     fstab = Fstab()
     fstab.read(self.__FSTAB)
     return [l.directory for l in fstab.get_rozofs_lines()]