示例#1
0
 def get_info(self):
     output = Helper.execute(["pvdisplay", self._path_id])
     if output:
         is_new = False
         info = Helper.format(output, "--- Physical volume ---")
         if not info:
             info = Helper.format(output, "--- NEW Physical volume ---")
             if info:
                 is_new = True
         info["NEW"] = is_new
         return info
     return None
示例#2
0
 def get_info(self):
     output = Helper.execute(["lvdisplay", self._device_path])
     if output:
         return Helper.format(output, "--- Logical volume ---")
     return None