Index: tunefs.c =================================================================== --- tunefs.c (revision 203014) +++ tunefs.c (working copy) @@ -79,13 +79,10 @@ main(int argc, char *argv[]) char *avalue, *Jvalue, *Lvalue, *lvalue, *Nvalue, *nvalue; const char *special, *on; const char *name; - int active; int Aflag, aflag, eflag, evalue, fflag, fvalue, Jflag, Lflag, lflag; int mflag, mvalue, Nflag, nflag, oflag, ovalue, pflag, sflag, svalue; int ch, found_arg, i; const char *chg[2]; - struct ufs_args args; - struct statfs stfs; if (argc < 3) usage(); @@ -93,7 +90,6 @@ main(int argc, char *argv[]) Nflag = nflag = oflag = pflag = sflag = 0; avalue = Jvalue = Lvalue = lvalue = Nvalue = nvalue = NULL; evalue = fvalue = mvalue = ovalue = svalue = 0; - active = 0; found_arg = 0; /* At least one arg is required. */ while ((ch = getopt(argc, argv, "Aa:e:f:J:L:l:m:N:n:o:ps:")) != -1) switch (ch) { @@ -251,12 +247,6 @@ main(int argc, char *argv[]) on = special = argv[0]; if (ufs_disk_fillout(&disk, special) == -1) goto err; - if (disk.d_name != special) { - special = disk.d_name; - if (statfs(special, &stfs) == 0 && - strcmp(special, stfs.f_mntonname) == 0) - active = 1; - } if (pflag) { printfs(); @@ -440,13 +430,6 @@ main(int argc, char *argv[]) if (sbwrite(&disk, Aflag) == -1) goto err; ufs_disk_close(&disk); - if (active) { - bzero(&args, sizeof(args)); - if (mount("ufs", on, - stfs.f_flags | MNT_UPDATE | MNT_RELOAD, &args) < 0) - err(9, "%s: reload", special); - warnx("file system reloaded"); - } exit(0); err: if (disk.d_error != NULL) Index: tunefs.8 =================================================================== --- tunefs.8 (revision 203014) +++ tunefs.8 (working copy) @@ -57,9 +57,7 @@ utility is designed to change the dynamic paramete which affect the layout policies. The .Nm -utility cannot be run on an active file system. -To change an active file system, -it must be downgraded to read-only or unmounted. +utility cannot be run on a mounted file system. .Pp The parameters which are to be changed are indicated by the flags given below: @@ -168,7 +166,7 @@ The utility appeared in .Bx 4.2 . .Sh BUGS -This utility does not work on active file systems. +This utility does not work on mounted file systems. To change the root file system, the system must be rebooted after the file system is tuned. .\" Take this out and a Unix Daemon will dog your steps from now until