We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f00e77 commit 023d022Copy full SHA for 023d022
source/kernel/C/shell/commands/mount.c
@@ -16,12 +16,16 @@
16
17
int cmd_mount(int argc, char** argv)
18
{
19
- if (argc < 3) {
20
- printf("Usage: mount <device> <mount_point>");
+ if(argc == 1){
21
list_all_mounts();
22
return 0;
23
}
24
+ if (argc < 3) {
25
+ printf("Usage: mount <device> <mount_point>");
26
+ return -1;
27
+ }
28
+
29
const char* device = argv[1];
30
const char* mount_point = argv[2];
31
0 commit comments