]> www.infradead.org Git - mtd-utils.git/commit
UBI-utils: add compare feature
authorAlexander Schmidt <alexs@linux.vnet.ibm.com>
Tue, 10 Jul 2007 15:53:54 +0000 (17:53 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 10 Jul 2007 18:00:43 +0000 (21:00 +0300)
commit0d62e6a7338d8f25727f56ca14236954fc8f2cef
tree767442d91fe044f6671cf618b3f08165f171fef0
parent8496f75b4897056a1423e30a41649dbc11b421d4
UBI-utils: add compare feature

This is a new feature for pfiflash, called "--compare". It allows the user
to simulate a pfiflash session without actually changing the flash
content. If the flash content is equal to the data in the pfif file,
pfiflash returns zero. A positive value is returned when the flash
content differs from the pfi file, which indicates that an update is
necessary. This feature is useful when a controller mounts an NFS share
during boot and has to determine if a pfi file stored on this share
contains a code update. Modified PDD values are also registered by the
compare feature.

Signed-off-by: Alexander Schmidt <alexs@linux.vnet.ibm.com>
ubi-utils/src/bootenv.c
ubi-utils/src/bootenv.h
ubi-utils/src/libpfiflash.c
ubi-utils/src/pfiflash.c
ubi-utils/src/pfiflash.h
ubi-utils/src/pfiflash_error.h