diff options
author | Cyril Bur <cyril.bur@au1.ibm.com> | 2017-07-28 16:46:28 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-08-01 13:57:35 +1000 |
commit | 6b9791e7a309b3622974f948cdfb89dd831148b2 (patch) | |
tree | 69f6ea4651d88516e955a8d32334f26496a64927 /external/gard | |
parent | ff632ec422d26d1689d732f374d4bfe55b3f39c7 (diff) | |
download | skiboot-6b9791e7a309b3622974f948cdfb89dd831148b2.zip skiboot-6b9791e7a309b3622974f948cdfb89dd831148b2.tar.gz skiboot-6b9791e7a309b3622974f948cdfb89dd831148b2.tar.bz2 |
external/pflash: Correct erase alignment checks
pflash should check the alignment of addresses and sizes when asked to
erase. There are two possibilities:
1. The user has specified sizes manually in which case pflash should
be as flexible as possible, blocklevel_smart_erase() permits this. To
prevent possible mistakes pflash will require --force to perform a
manual erase of unaligned sizes.
2. The user used -P to specify a partition, partitions aren't
necessarily erase granule aligned anymore, blocklevel_smart_erase() can
handle. In this it doesn't make sense to warn/error about misalignment
since the misalignment is inherent to the FFS partition and not really
user input.
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
Reviewed-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/gard')
0 files changed, 0 insertions, 0 deletions