Skip to content

Commit

Permalink
Merge pull request #515 from flatcar/kai/verity-test
Browse files Browse the repository at this point in the history
kola: Increase amount of disk corruption in verity test
  • Loading branch information
pothos authored Apr 4, 2024
2 parents 09c124d + 6a643ed commit 34752ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kola/tests/misc/verity.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ func VerityCorruption(c cluster.TestCluster) {
// get usr device, probably vda3
usrdev := util.GetUsrDeviceNode(c, m)

// write zero bytes to first 10 MB
c.MustSSH(m, fmt.Sprintf(`sudo dd if=/dev/zero of=%s bs=1M count=10 status=none`, usrdev))
// write zero bytes to first 100 MB
c.MustSSH(m, fmt.Sprintf(`sudo dd if=/dev/zero of=%s bs=1M count=100 status=none`, usrdev))

// make sure we flush everything so the filesystem has to go through to the device backing verity before fetching a file from /usr
// (done in one execution because after flushing command itself runs the corruption could already be detected,
Expand Down

0 comments on commit 34752ee

Please sign in to comment.