Changeset 2ecc9d4 in mainline
- Timestamp:
- 2010-11-23T15:16:53Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a4b92fb
- Parents:
- 8b3bff5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mount/mount.c
r8b3bff5 r2ecc9d4 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 = ""; 61 62 int rc; 62 63 63 64 argc = cli_count_args(argv); 64 65 65 if ((argc < 4) || (argc > 5)) {66 if ((argc < 3) || (argc > 5)) { 66 67 printf("%s: invalid number of arguments.\n", 67 68 cmdname); 68 69 return CMD_FAILURE; 69 70 } 71 if (argc > 3) 72 dev = argv[3]; 70 73 if (argc == 5) 71 74 mopts = argv[4]; 72 75 73 rc = mount(argv[1], argv[2], argv[3], mopts, 0);76 rc = mount(argv[1], argv[2], dev, mopts, 0); 74 77 if (rc != EOK) { 75 78 printf("Unable to mount %s filesystem to %s on %s (rc=%d)\n",
Note:
See TracChangeset
for help on using the changeset viewer.