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

Issue 3232004: update_engine: use librootdev (Closed)

Created:
10 years, 3 months ago by Will Drewry
Modified:
9 years, 7 months ago
Reviewers:
petkov, adlr
CC:
chromium-os-reviews_chromium.org, petkov, adlr
Visibility:
Public.

Description

update_engine: use librootdev Rewrote BootDevice() to call rootdev() with full resolution enabled. BootDevice() was crawling /proc/cmdline while rootdev() uses /sys. We should have both /proc and /sys normally so hopefully this is a minor change to get us to a working updater over dm-verity. TEST=none yet. BUG=chromium-os:5938 Change-Id: I7ee654d5b429d67d65e9729210ef839c58fa1d34

Patch Set 1 #

Total comments: 10

Patch Set 2 : style nits++ #

Total comments: 1

Patch Set 3 : use LOG_IF since it fits _exactly_ in 80 chars :) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -28 lines) Patch
M SConstruct View 1 chunk +1 line, -0 lines 0 comments Download
M utils.cc View 1 2 2 chunks +20 lines, -28 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Will Drewry
10 years, 3 months ago (2010-08-30 16:22:10 UTC) #1
adlr
LGTM w/ nit http://codereview.chromium.org/3232004/diff/1/3 File utils.cc (right): http://codereview.chromium.org/3232004/diff/1/3#newcode14 utils.cc:14: #include <rootdev/rootdev.h> our new policy is ...
10 years, 3 months ago (2010-08-30 17:41:21 UTC) #2
petkov
in addition to adlr's nits... LGTM otherwise. http://codereview.chromium.org/3232004/diff/1/3 File utils.cc (right): http://codereview.chromium.org/3232004/diff/1/3#newcode368 utils.cc:368: string boot_device(""); ...
10 years, 3 months ago (2010-08-30 17:45:00 UTC) #3
Will Drewry
all comments integrated! Doing a quick test locally now. http://codereview.chromium.org/3232004/diff/1/3 File utils.cc (right): http://codereview.chromium.org/3232004/diff/1/3#newcode14 utils.cc:14: ...
10 years, 3 months ago (2010-08-30 17:59:08 UTC) #4
petkov
10 years, 3 months ago (2010-08-30 18:17:18 UTC) #5
still LGTM

http://codereview.chromium.org/3232004/diff/6001/4003
File utils.cc (right):

http://codereview.chromium.org/3232004/diff/6001/4003#newcode380
utils.cc:380: LOG(WARNING) << "rootdev found a device name with no device node";
You could use LOG_IF(WARNING, ret > 0) << ... Not sure if it improves
readability though :-)

Powered by Google App Engine
This is Rietveld 408576698