Commit 3ebed9c5 authored by Andrew de los Reyes's avatar Andrew de los Reyes Committed by Alex Deymo
Browse files

bsdiff: if file is /dev/fd/*, don't open/close it. Just use the fd.

The updater, in an attempt to keep bspatch from open/closing the raw
block device frequently, passes a file descriptor and a path of
/dev/fd/(some number) as the path. This patch causes bspatch to
recognize that magic file path and not call open/close.

This dramatically reduces resource usage on client machines performing
delta updates.

BUG=7636
TEST=Installed delta on device

Review URL: http://codereview.chromium.org/3698005
parent 11a4ecc1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment