mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
nshlib: losetup/lomtd change "-s <sectsize>" to "-b <sectsize>"
to follow host tool usage: https://github.com/util-linux/util-linux/blob/master/sys-utils/losetup.c#L473 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:

committed by
Alan Carvalho de Assis

parent
baa23afbd3
commit
fe7f217497
@@ -303,7 +303,7 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
#ifndef CONFIG_DISABLE_MOUNTPOINT
|
||||
# if defined(CONFIG_DEV_LOOP) && !defined(CONFIG_NSH_DISABLE_LOSETUP)
|
||||
CMD_MAP("losetup", cmd_losetup, 3, 6,
|
||||
"[-d <dev-path>] | [[-o <offset>] [-r] [-s <sect-size>] "
|
||||
"[-d <dev-path>] | [[-o <offset>] [-r] [-b <sect-size>] "
|
||||
"<dev-path> <file-path>]"),
|
||||
# endif
|
||||
#endif
|
||||
@@ -320,7 +320,7 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
# if defined(CONFIG_MTD_LOOP) && !defined(CONFIG_NSH_DISABLE_LOMTD)
|
||||
CMD_MAP("lomtd", cmd_lomtd, 3, 9,
|
||||
"[-d <dev-path>] | [[-o <offset>] [-e <erase-size>] "
|
||||
"[-s <sect-size>] <dev-path> <file-path>]]"),
|
||||
"[-b <sect-size>] <dev-path> <file-path>]]"),
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user