Changes in uspace/app/bdsh/cmds/modules/mount/mount.c [2ecc9d4:a000878c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mount/mount.c
r2ecc9d4 ra000878c 44 44 { 45 45 static char helpfmt[] = 46 "Usage: %s <fstype> <mp> [dev][<moptions>]\n";46 "Usage: %s <fstype> <mp> <dev> [<moptions>]\n"; 47 47 if (level == HELP_SHORT) { 48 48 printf("'%s' mounts a file system.\n", cmdname); … … 59 59 unsigned int argc; 60 60 const char *mopts = ""; 61 const char *dev = "";62 61 int rc; 63 62 64 63 argc = cli_count_args(argv); 65 64 66 if ((argc < 3) || (argc > 5)) {65 if ((argc < 4) || (argc > 5)) { 67 66 printf("%s: invalid number of arguments.\n", 68 67 cmdname); 69 68 return CMD_FAILURE; 70 69 } 71 if (argc > 3)72 dev = argv[3];73 70 if (argc == 5) 74 71 mopts = argv[4]; 75 72 76 rc = mount(argv[1], argv[2], dev, mopts, 0);73 rc = mount(argv[1], argv[2], argv[3], mopts, 0); 77 74 if (rc != EOK) { 78 75 printf("Unable to mount %s filesystem to %s on %s (rc=%d)\n",
Note:
See TracChangeset
for help on using the changeset viewer.