nshlib/nsh_fscmds.c: Make losetup command take optional sector size

This commit is contained in:
YAMAMOTO Takashi
2022-04-11 13:58:04 +09:00
committed by Xiang Xiao
parent f2e7faa478
commit c7fcffd09a
2 changed files with 10 additions and 4 deletions

View File

@@ -278,7 +278,8 @@ static const struct cmdmap_s g_cmdmap[] =
#ifndef CONFIG_DISABLE_MOUNTPOINT
# if defined(CONFIG_DEV_LOOP) && !defined(CONFIG_NSH_DISABLE_LOSETUP)
{ "losetup", cmd_losetup, 3, 6,
"[-d <dev-path>] | [[-o <offset>] [-r] <dev-path> <file-path>]" },
"[-d <dev-path>] | [[-o <offset>] [-r] [-s <sect-size>] "
"<dev-path> <file-path>]" },
# endif
#endif