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:
Xiang Xiao
2023-09-23 14:13:01 +08:00
committed by Alan Carvalho de Assis
parent baa23afbd3
commit fe7f217497
2 changed files with 8 additions and 8 deletions

View File

@@ -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