aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount_ifs/mount_ufs.c
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2000-10-14 02:44:56 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2000-10-14 02:44:56 +0000
commit5332f2e5d8cb6eb1a691a70e8ca6d89dd580656d (patch)
treef66a30cbed34a9234c5bca51d77855d4d06c7c40 /sbin/mount_ifs/mount_ufs.c
parentd1eefff4182938ff15cda142ecc228a7f41c47b6 (diff)
downloadsrc-5332f2e5d8cb6eb1a691a70e8ca6d89dd580656d.tar.gz
src-5332f2e5d8cb6eb1a691a70e8ca6d89dd580656d.zip
Pre-IFS commit. Commit IFS-aware fsck and mount utilities.
mount_ifs: repocopy of sbin/mount, with most of the intelligence ripped out and "ufs" replaced with "ifs" in the right places. It will only mount a single filesystem, rather than the -t <type> magic that our real mount does. fsck_ifs: repocopy of sbin/fsck_ffs, but the directory structure stuff (pass2 and some refcount checks) has been #ifdef'ed out. src/sbin/Makefile: Build these two utilities There is probably cruft code left in both which can be removed at a later date, especially in mount_ifs, but I trust that people will not try mount_ifs -a .. Note: there are no man pages installed for these two commands as I haven't actually written them yet.
Notes
Notes: svn path=/head/; revision=67105
Diffstat (limited to 'sbin/mount_ifs/mount_ufs.c')
-rw-r--r--sbin/mount_ifs/mount_ufs.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sbin/mount_ifs/mount_ufs.c b/sbin/mount_ifs/mount_ufs.c
index 18180b86d4a9..65dc32e492c6 100644
--- a/sbin/mount_ifs/mount_ufs.c
+++ b/sbin/mount_ifs/mount_ufs.c
@@ -58,7 +58,7 @@ static const char rcsid[] =
#include "extern.h"
#include "mntopts.h"
-static void ufs_usage __P((void));
+static void ifs_usage __P((void));
static struct mntopt mopts[] = {
MOPT_STDOPTS,
@@ -71,7 +71,7 @@ static struct mntopt mopts[] = {
};
int
-mount_ufs(argc, argv)
+mount_ifs(argc, argv)
int argc;
char * const argv[];
{
@@ -90,13 +90,13 @@ mount_ufs(argc, argv)
break;
case '?':
default:
- ufs_usage();
+ ifs_usage();
}
argc -= optind;
argv += optind;
if (argc != 2)
- ufs_usage();
+ ifs_usage();
args.fspec = argv[0]; /* The name of the device file. */
fs_name = argv[1]; /* The mount point. */
@@ -108,17 +108,17 @@ mount_ufs(argc, argv)
else
args.export.ex_flags = 0;
- error = getvfsbyname("ufs", &vfc);
- if (error && vfsisloadable("ufs")) {
- if (vfsload("ufs")) {
- warn("vfsload(ufs)");
+ error = getvfsbyname("ifs", &vfc);
+ if (error && vfsisloadable("ifs")) {
+ if (vfsload("ifs")) {
+ warn("vfsload(ifs)");
return (1);
}
endvfsent(); /* flush old table */
- error = getvfsbyname("ufs", &vfc);
+ error = getvfsbyname("ifs", &vfc);
}
if (error) {
- warnx("ufs filesystem is not available");
+ warnx("ifs filesystem is not available");
return (1);
}
@@ -147,8 +147,8 @@ mount_ufs(argc, argv)
}
static void
-ufs_usage()
+ifs_usage()
{
- (void)fprintf(stderr, "usage: mount_ufs [-o options] special node\n");
+ (void)fprintf(stderr, "usage: mount_ifs [-o options] special node\n");
exit(1);
}