nshlib/dd: Increase the integer width for sector size in dd.
On some systems, using sector sizes larger than 65536 is needed for
profiling performance or testing.
Stuart Ianna <stuart.ianna@motec.com.au>
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
cmd_dd:support dd can do verify
After writing the file, compare the contents of the two files again
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
nshlib/cmd_dd: Retry if read() was interrupted
Without this patch
nsh> ls /etc/group | dd | dd
sh [13:100]
sh [14:100]
nsh: dd: read failed: 4
nsh>
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/dd.html
> notrunc
> Do not truncate the output file. Preserve blocks in the output
> file not explicitly written by this invocation of the dd utility.
Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>