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
1 file changed
tree: 5e0801c447d6d7f9ffaf259cda8dc4f2c1662797
  1. bsdiff.1
  2. bsdiff.c
  3. bspatch.1
  4. bspatch.c
  5. Makefile