From 0e0c2b2927521737aad30f81f9fa31513bf97c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 1 Nov 2004 01:05:30 +0000 Subject: [PATCH] Now defaults to automatic file system recognition by the disk device manager - note, this currently does not until the different module APIs for file systems are merged together. fs_mount_volume()'s order of arguments was changed. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9696 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/bin/mount.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/apps/bin/mount.c b/src/apps/bin/mount.c index db399e8f62..fb78f673b7 100644 --- a/src/apps/bin/mount.c +++ b/src/apps/bin/mount.c @@ -20,7 +20,7 @@ usage(const char *programName) printf("usage: %s [-ro] [-t fstype] device directory\n" "\t-ro\tmounts the volume read-only\n" - "\t-t\tspecifies the file system to use (defaults to \"bfs\")\n",programName); + "\t-t\tspecifies the file system to use (defaults to automatic recognition)\n",programName); exit(0); } @@ -60,9 +60,6 @@ main(int argc, char **argv) /* check the arguments */ - if (fs == NULL) - fs = "bfs"; - device = argv[0]; mountPoint = argv[1]; @@ -80,7 +77,7 @@ main(int argc, char **argv) /* do the work */ - status = fs_mount_volume(fs, mountPoint, device, flags, parameter); + status = fs_mount_volume(mountPoint, device, fs, flags, parameter); if (status != B_OK) { fprintf(stderr, "%s: %s\n", programName, strerror(status)); return -1;