Removed unused mount/unmount commands.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10462 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
SubDir OBOS_TOP src kernel apps mount ;
|
|
||||||
|
|
||||||
KernelObjects <$(SOURCE_GRIST)>main.c : -fpic ;
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
/*
|
|
||||||
** Copyright 2002, Travis Geiselbrecht. All rights reserved.
|
|
||||||
** Distributed under the terms of the NewOS License.
|
|
||||||
*/
|
|
||||||
#include <syscalls.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
int rc;
|
|
||||||
|
|
||||||
if(argc < 4) {
|
|
||||||
printf("not enough arguments to mount:\n");
|
|
||||||
printf("usage: mount <path> <device> <fsname>\n");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
rc = sys_mount(argv[1], argv[2], argv[3], NULL);
|
|
||||||
if (rc < 0) {
|
|
||||||
printf("sys_mount() returned error: %s\n", strerror(rc));
|
|
||||||
} else {
|
|
||||||
printf("%s successfully mounted on %s.\n", argv[2], argv[1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
SubDir OBOS_TOP src kernel apps unmount ;
|
|
||||||
|
|
||||||
KernelObjects <$(SOURCE_GRIST)>main.c : -fpic ;
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
/*
|
|
||||||
** Copyright 2002, Travis Geiselbrecht. All rights reserved.
|
|
||||||
** Distributed under the terms of the NewOS License.
|
|
||||||
*/
|
|
||||||
#include <syscalls.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
int rc;
|
|
||||||
|
|
||||||
if(argc < 2) {
|
|
||||||
printf("not enough arguments to unmount\n");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
rc = sys_unmount(argv[1]);
|
|
||||||
if (rc < 0) {
|
|
||||||
printf("sys_unmount() returned error: %s\n", strerror(rc));
|
|
||||||
} else {
|
|
||||||
printf("%s successfully unmounted.\n", argv[1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user