]> www.infradead.org Git - mtd-utils.git/commit
ubiupdatevol: add a --skip option
authorMike Frysinger <vapier@gentoo.org>
Thu, 9 May 2013 17:59:24 +0000 (13:59 -0400)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 1 Jul 2013 06:15:24 +0000 (09:15 +0300)
commitab8c6fb93ce9db0f09401c4b819b0b277dc00340
tree52605fdb78f42db89e5d6a96f7e42c27cc071e6c
parent2bd7447e96e1c6cf8637713f9cbcec51b05e5aa1
ubiupdatevol: add a --skip option

This already has a --size option for controlling how many bytes to read
from the input.  Add a --skip option to control the offset into the input
too.  This way people don't have to do `dd | ubiupdatevol`.

While we're here, I've fixed the types used with args.size and the read
loop so that they can hold the right sizes (like setting a 32bit+ size).

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
ubi-utils/ubiupdatevol.c