Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Issue 6695038: verity: do all hashing in dm-bht.c (Closed)

Created:
9 years, 9 months ago by Mandeep Singh Baines
Modified:
9 years, 7 months ago
Reviewers:
Paul T, ups, Will Drewry
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

verity: do all hashing in dm-bht.c We were doing the hashing of the disk blocks in dm-verity.c and hashing hash blocks in dm-bht.c. We can simplifiy the code by doing all the hashing in dm-bht.c. We couldn't do this earlier because we had to handle unaligned reads (no longer an issue). I also removed the BUG_ON in dm_bht_get_node because I wanted to use it in dm_bht_check_block with depth == bht->depth. The kernel piece has already been reviewed and submitted. What is different in this CL are the modifications to the tests. BUG=9752 TEST=Ran dm-verity.git unit tests. Ran platform_DMVerityCorruption on H/W. kernel.git Review URL: http://codereview.chromium.org/6626037 Change-Id: Ic817a53f383f7727742c77c2064cdb0afe595c43 R=wad@chromium.org,taysom@chromium.org,ups@chromium.org Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=77599e8

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix per review. #

Total comments: 1

Patch Set 3 : Fix per review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -93 lines) Patch
M dm-bht.h View 1 chunk +1 line, -1 line 0 comments Download
M dm-bht.c View 4 chunks +19 lines, -35 lines 0 comments Download
M dm-bht_unittest.cc View 1 2 8 chunks +41 lines, -57 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mandeep Singh Baines
9 years, 9 months ago (2011-03-15 20:49:39 UTC) #1
Mandeep Singh Baines
Other than the changes to the unittest, all the code in this CL has already ...
9 years, 9 months ago (2011-03-16 16:43:32 UTC) #2
Will Drewry
One comment. Sorry for the delay I clicked on the other link which was the ...
9 years, 9 months ago (2011-03-16 16:53:37 UTC) #3
Mandeep Singh Baines
Fixed. PTAL. wad@chromium.org (wad@chromium.org) wrote: > One comment. Sorry for the delay I clicked on ...
9 years, 9 months ago (2011-03-16 18:27:17 UTC) #4
Will Drewry
9 years, 9 months ago (2011-03-16 19:32:54 UTC) #5
LGTM

THanks! Tests++!

http://codereview.chromium.org/6695038/diff/6001/dm-bht_unittest.cc
File dm-bht_unittest.cc (right):

http://codereview.chromium.org/6695038/diff/6001/dm-bht_unittest.cc#newcode243
dm-bht_unittest.cc:243: 0);
nit: did a tab sneak in? :)

Powered by Google App Engine
This is Rietveld 408576698