def fsck(self, **kwargs): """ Apply a filesystem coherency check on the Target. This does not check coherency between several targets. """ return Fsck(self, **kwargs)
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')
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')
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')
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)
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)