Changeset 41811af in mainline for uspace/app/bdsh/cmds/modules/mount/mount.c
- Timestamp:
- 2011-06-10T10:14:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab547063
- Parents:
- 9536e6e (diff), 390d80d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mount/mount.c
r9536e6e r41811af 51 51 { 52 52 static char helpfmt[] = 53 "Usage: %s <fstype> <mp> <dev>[<moptions>]\n";53 "Usage: %s <fstype> <mp> [dev] [<moptions>]\n"; 54 54 if (level == HELP_SHORT) { 55 55 printf("'%s' mounts a file system.\n", cmdname); … … 66 66 unsigned int argc; 67 67 const char *mopts = ""; 68 const char *dev = ""; 68 69 int rc, c, opt_ind; 69 70 … … 79 80 } 80 81 81 if ((argc < 4) || (argc > 5)) {82 if ((argc < 3) || (argc > 5)) { 82 83 printf("%s: invalid number of arguments. Try `mount --help'\n", 83 84 cmdname); 84 85 return CMD_FAILURE; 85 86 } 87 if (argc > 3) 88 dev = argv[3]; 86 89 if (argc == 5) 87 90 mopts = argv[4]; 88 91 89 rc = mount(argv[1], argv[2], argv[3], mopts, 0);92 rc = mount(argv[1], argv[2], dev, mopts, 0); 90 93 if (rc != EOK) { 91 94 printf("Unable to mount %s filesystem to %s on %s (rc=%d)\n",
Note:
See TracChangeset
for help on using the changeset viewer.