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

Issue 6896044: CHROMIUM: verity: remove special-case logic for the root node (Closed)

Created:
9 years, 8 months ago by Mandeep Singh Baines
Modified:
9 years, 7 months ago
Reviewers:
Paul T, Will Drewry
CC:
chromium-os-reviews_chromium.org, vb+kernel_google.com, Mandeep Singh Baines, Olof Johansson
Visibility:
Public.

Description

CHROMIUM: verity: remove special-case logic for the root node Now that the root-node is the same width as the interior nodes of the hash tree, we no longer need to make it a special case. BUG=chromium-os:9752 TEST=Ran dm-verity.git unit tests. Ran platform_DMVerityCorruption on H/W. Change-Id: I5faf43b2ec6e563f77966c7b8b62eb64cfc73198 Signed-off-by: Mandeep Singh Baines <msb@chromium.org>; R=wad@chromium.org,taysom@chromium.org Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=fdef1fe

Patch Set 1 #

Total comments: 15

Patch Set 2 : Fix per review. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -167 lines) Patch
M drivers/md/dm-bht.c View 1 11 chunks +39 lines, -166 lines 1 comment Download
M include/linux/dm-bht.h View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Mandeep Singh Baines
9 years, 8 months ago (2011-04-23 01:53:51 UTC) #1
Mandeep Singh Baines
ping
9 years, 8 months ago (2011-04-25 16:26:03 UTC) #2
Will Drewry
On 2011/04/25 16:26:03, Mandeep Singh Baines wrote: > ping pong
9 years, 8 months ago (2011-04-25 16:26:44 UTC) #3
Will Drewry
Very exciting! A few nits and questions. thanks! will http://codereview.chromium.org/6896044/diff/1/drivers/md/dm-bht.c File drivers/md/dm-bht.c (right): http://codereview.chromium.org/6896044/diff/1/drivers/md/dm-bht.c#newcode566 drivers/md/dm-bht.c:566: ...
9 years, 8 months ago (2011-04-25 16:40:42 UTC) #4
Mandeep Singh Baines
PTAL. Fixed. Re-tested. http://codereview.chromium.org/6896044/diff/1/drivers/md/dm-bht.c File drivers/md/dm-bht.c (right): http://codereview.chromium.org/6896044/diff/1/drivers/md/dm-bht.c#newcode566 drivers/md/dm-bht.c:566: if (depth == 0 && state ...
9 years, 8 months ago (2011-04-25 17:44:21 UTC) #5
Will Drewry
LGTM with an open question about how we can short-circuit populate. (Do we bundle all ...
9 years, 8 months ago (2011-04-25 19:50:39 UTC) #6
Mandeep Singh Baines
wad@chromium.org (wad@chromium.org) wrote: > LGTM with an open question about how we can short-circuit populate. ...
9 years, 8 months ago (2011-04-25 20:42:39 UTC) #7
Paul T
LGTM - remarkable reduction in complexity. http://codereview.chromium.org/6896044/diff/5001/drivers/md/dm-bht.c File drivers/md/dm-bht.c (right): http://codereview.chromium.org/6896044/diff/5001/drivers/md/dm-bht.c#newcode887 drivers/md/dm-bht.c:887: return dm_bht_verify_path(bht, block_index, ...
9 years, 8 months ago (2011-04-26 18:29:54 UTC) #8
Mandeep Singh Baines
9 years, 8 months ago (2011-04-26 23:45:22 UTC) #9
taysom@chromium.org (taysom@chromium.org) wrote:
> LGTM - remarkable reduction in complexity.
> 
> 
> http://codereview.chromium.org/6896044/diff/5001/drivers/md/dm-bht.c
> File drivers/md/dm-bht.c (right):
> 
>
http://codereview.chromium.org/6896044/diff/5001/drivers/md/dm-bht.c#newcode887
> drivers/md/dm-bht.c:887: return  dm_bht_verify_path(bht, block_index,
> pg, offset);
> Can dm_bht_verify_block go away and be replaced to calls to
> dm_bht_verity_path?
> 

Yes it can. I plan to do this is a future CL. Didn't want to do too
much in one CL.

> http://codereview.chromium.org/6896044/

Powered by Google App Engine
This is Rietveld 408576698