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

Issue 2568003: fix for issue 2610: add script to populate payload partition of recovery image (Closed)

Created:
10 years, 6 months ago by Tan Gao
Modified:
9 years, 7 months ago
Reviewers:
adlr
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush
Base URL:
ssh://git@chromiumos-git/chromeos
Visibility:
Public.

Description

fix for issue 2610 - add shell script to populate payload partition of a recovery image (i.e. copying partition A of a pristine Chrome OS image to partition B of a recovery image)

Patch Set 1 #

Total comments: 8

Patch Set 2 : add check to use 2MB blocks for faster write #

Patch Set 3 : remove cruft #

Total comments: 6

Patch Set 4 : added constants to represent byte count #

Total comments: 2

Patch Set 5 : rename LARGE_SECTOR_SIZE to IDEAL_BLOCK_SIZE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -0 lines) Patch
A src/scripts/populate_recovery_payload.sh View 1 2 3 4 1 chunk +186 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Tan Gao
Hi Andrew, Here's the shell script to populate payload partition (B) of recovery image by ...
10 years, 6 months ago (2010-06-04 00:20:52 UTC) #1
adlr
http://codereview.chromium.org/2568003/diff/1/2 File src/scripts/populate_recovery_payload.sh (right): http://codereview.chromium.org/2568003/diff/1/2#newcode78 src/scripts/populate_recovery_payload.sh:78: echo "About to overwrite payload partition..." you can move ...
10 years, 6 months ago (2010-06-07 16:53:55 UTC) #2
Tan Gao
Hi Andrew, I just added check for using 2MB block size (faster write!). PTAL Thanks, ...
10 years, 6 months ago (2010-06-07 20:36:18 UTC) #3
adlr
just a couple small things... http://codereview.chromium.org/2568003/diff/8001/9001 File src/scripts/populate_recovery_payload.sh (right): http://codereview.chromium.org/2568003/diff/8001/9001#newcode140 src/scripts/populate_recovery_payload.sh:140: ROOTFS_BS=512 # default sector ...
10 years, 6 months ago (2010-06-07 21:38:18 UTC) #4
Tan Gao
Hi Andrew, cleaned up numbers with appropriate constants to make the lines a bit more ...
10 years, 6 months ago (2010-06-07 22:06:29 UTC) #5
adlr
LGTM w/ one more rename request. Thanks for making these changes! http://codereview.chromium.org/2568003/diff/13001/3002 File src/scripts/populate_recovery_payload.sh (right): ...
10 years, 6 months ago (2010-06-07 22:18:00 UTC) #6
Tan Gao
10 years, 6 months ago (2010-06-07 22:35:48 UTC) #7
darn .. tree is closed .. will push after it's reopened :-(

thanks again for the review!

http://codereview.chromium.org/2568003/diff/13001/3002
File src/scripts/populate_recovery_payload.sh (right):

http://codereview.chromium.org/2568003/diff/13001/3002#newcode141
src/scripts/populate_recovery_payload.sh:141: LARGE_SECTOR_SIZE=$((2 * 1024 *
1024))  # large sector size in bytes
On 2010/06/07 22:18:00, adlr wrote:
> I would actually prefer to call this something like IDEAL_BLOCK_SIZE. The
reason
> is that sectors are a property of disks; they are the smallest addressable
unit
> on the disk, and they are 512 bytes in length. So, the term "sector" implies
> that it's a property of the disk.
> 
> Here, it's not a bigger sector size, it's just that we'll do writes that are
> bigger. block is a more generic term than sector, so it's fine to call it a
> block size.

Done.

Powered by Google App Engine
This is Rietveld 408576698