nshlib: support dd with conv=notrunc,nocreat

refs to: https://man7.org/linux/man-pages/man1/dd.1.html

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1
2024-01-12 20:32:52 +08:00
committed by Xiang Xiao
parent 28aa8a99d0
commit 97a33e7491
2 changed files with 17 additions and 6 deletions

View File

@@ -188,7 +188,7 @@ static const struct cmdmap_s g_cmdmap[] =
#ifndef CONFIG_NSH_DISABLE_DD
CMD_MAP("dd", cmd_dd, 3, 7,
"if=<infile> of=<outfile> [bs=<sectsize>] [count=<sectors>] "
"[skip=<sectors>] [seek=<sectors>] [verify]"),
"[skip=<sectors>] [seek=<sectors>] [verify] [conv=<nocreat,notrunc>]"),
#endif
#if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE) && !defined(CONFIG_NSH_DISABLE_DELROUTE)