예제 #1
0
 def fsck(self, **kwargs):
     """
     Apply a filesystem coherency check on the Target. This does not
     check coherency between several targets.
     """
     return Fsck(self, **kwargs)
예제 #2
0
 def test_fsck_addopts_placeholders(self):
     """test command line fsck (addl options with placeholders)"""
     tgt = self.fs.new_target(self.srv1, 'mgt', 0, '/dev/root')
     action = Fsck(tgt, addopts='--ostdb /mnt/db/%label.db')
     self.check_cmd(action, 'e2fsck -f -C2 /dev/root --ostdb /mnt/db/MGS.db')
예제 #3
0
 def test_fsck_addopts(self):
     """test command line fsck (addl options)"""
     tgt = self.fs.new_target(self.srv1, 'mgt', 0, '/dev/root')
     action = Fsck(tgt, addopts='-v')
     self.check_cmd(action, 'e2fsck -f -C2 /dev/root -v')
예제 #4
0
 def test_fsck(self):
     """test command line fsck"""
     tgt = self.fs.new_target(self.srv1, 'mgt', 0, '/dev/root')
     action = Fsck(tgt)
     self.check_cmd(action, 'e2fsck -f -C2 /dev/root -y')
예제 #5
0
 def test_fsck_addopts(self):
     """test command line fsck (addl options)"""
     tgt = self.fs.new_target(self.srv1, 'mgt', 0, self.block1)
     action = Fsck(tgt, addopts='-v')
     self.check_cmd(action, 'e2fsck -f -C2 %s -v' % self.block1)
예제 #6
0
 def test_fsck(self):
     """test command line fsck"""
     tgt = self.fs.new_target(self.srv1, 'mgt', 0, self.block1)
     action = Fsck(tgt)
     self.check_cmd(action, 'e2fsck -f -C2 %s -y' % self.block1)