diff --git a/nshlib/nsh_command.c b/nshlib/nsh_command.c index 3961e7c3a..a1f5445d0 100644 --- a/nshlib/nsh_command.c +++ b/nshlib/nsh_command.c @@ -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 ] | [[-o ] [-r] [-s ] " + "[-d ] | [[-o ] [-r] [-b ] " " ]"), # 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 ] | [[-o ] [-e ] " - "[-s ] ]]"), + "[-b ] ]]"), # endif #endif diff --git a/nshlib/nsh_fscmds.c b/nshlib/nsh_fscmds.c index 73b9292fa..559fc31f1 100644 --- a/nshlib/nsh_fscmds.c +++ b/nshlib/nsh_fscmds.c @@ -798,13 +798,13 @@ int cmd_losetup(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv) /* Get the losetup options: Two forms are supported: * * losetup -d - * losetup [-o ] [-r] [-s ] + * losetup [-o ] [-r] [-b ] * * NOTE that the -o and -r options are accepted with the -d option, but * will be ignored. */ - while ((option = getopt(argc, argv, "d:o:rs:")) != ERROR) + while ((option = getopt(argc, argv, "d:o:rb:")) != ERROR) { switch (option) { @@ -821,7 +821,7 @@ int cmd_losetup(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv) readonly = true; break; - case 's': + case 'b': sectsize = atoi(optarg); break; @@ -1131,14 +1131,14 @@ int cmd_lomtd(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv) /* Get the lomtd options: Two forms are supported: * * lomtd -d - * lomtd [-o ] [-e erasesize] [-s sectsize] + * lomtd [-o ] [-e erasesize] [-b sectsize] * * * NOTE that the -o and -r options are accepted with the -d option, but * will be ignored. */ - while ((option = getopt(argc, argv, "d:o:e:s:")) != ERROR) + while ((option = getopt(argc, argv, "d:o:e:b:")) != ERROR) { switch (option) { @@ -1155,7 +1155,7 @@ int cmd_lomtd(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv) offset = atoi(optarg); break; - case 's': + case 'b': sectsize = atoi(optarg); break;