summaryrefslogtreecommitdiffstats
path: root/sbin/mount/mount_ufs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mount/mount_ufs.c')
-rw-r--r--sbin/mount/mount_ufs.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sbin/mount/mount_ufs.c b/sbin/mount/mount_ufs.c
index babb760..e14a26a 100644
--- a/sbin/mount/mount_ufs.c
+++ b/sbin/mount/mount_ufs.c
@@ -38,7 +38,7 @@ static char copyright[] =
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)mount_ufs.c 8.2 (Berkeley) 3/27/94";
+static char sccsid[] = "@(#)mount_ufs.c 8.4 (Berkeley) 4/26/95";
#endif /* not lint */
#include <sys/param.h>
@@ -51,6 +51,8 @@ static char sccsid[] = "@(#)mount_ufs.c 8.2 (Berkeley) 3/27/94";
#include <string.h>
#include <unistd.h>
+#include <ufs/ufs/ufsmount.h>
+
#include "mntopts.h"
void ufs_usage __P((void));
@@ -60,6 +62,7 @@ static struct mntopt mopts[] = {
MOPT_ASYNC,
MOPT_SYNC,
MOPT_UPDATE,
+ MOPT_FORCE,
{ NULL }
};
@@ -78,7 +81,7 @@ mount_ufs(argc, argv)
while ((ch = getopt(argc, argv, "o:")) != EOF)
switch (ch) {
case 'o':
- getmntopts(optarg, mopts, &mntflags);
+ getmntopts(optarg, mopts, &mntflags, 0);
break;
case '?':
default:
@@ -100,7 +103,7 @@ mount_ufs(argc, argv)
else
args.export.ex_flags = 0;
- if (mount(MOUNT_UFS, fs_name, mntflags, &args) < 0) {
+ if (mount("ufs", fs_name, mntflags, &args) < 0) {
(void)fprintf(stderr, "%s on %s: ", args.fspec, fs_name);
switch (errno) {
case EMFILE:
OpenPOWER on IntegriCloud