(self)
enables journalling.
enables journalling.
enables journalling .
def EnableJournal(self):
    """enables journalling."""
    if self.wholedisk:  # pylint: disable=no-member
      raise MacDiskError("Cannot enable journal on whole disk: %s" %
                         self.deviceid)
    if self.journalsize:  # pylint: disable=no-member
      raise MacDiskError("%s already has a journal." % self.deviceid)
    else:
      command = ["diskutil", "enableJournal", self.deviceid]
      rc = gmacpyutil.RunProcess(command)[2]
      if rc == 0:
        self.Refresh()
        return True
def EnableJournal ( self ) : if self . wholedisk : # pylint: disable=no-member raise MacDiskError ( "Cannot enable journal on whole disk: %s" % self . deviceid ) if self . journalsize : # pylint: disable=no-member raise MacDiskError ( "%s already has a journal." % self . deviceid ) else : command = [ "diskutil" , "enableJournal" , self . deviceid ] rc = gmacpyutil . RunProcess ( command ) [ 2 ] if rc == 0 : self . Refresh ( ) return True