Subject: Oh well.
To: None <current-users@NetBSD.ORG>
From: Trouble Free RecepPFFFFFFFFFFFFFFFF <greywolf@starwolf.com>
List: current-users
Date: 07/17/1996 09:00:03
Well, it seems the patch I sent either isn't holding or never got committed.
I received word from core that the patch had been applied.
Since it hasn't been applied to the distributed source tree, I present it
here. Maybe there was a mix-up or something; I send-pr'd it and received
a closure before the feature freeze date.
Anyway, here it is: fsck/preen.c diffs which allow one to say, for example,
# fsck /usr
and have it do The Right Thing.
--- preen.c Mon Apr 29 11:37:18 1996
+++ preen.c.orig Mon Apr 29 11:36:39 1996
@@ -290,6 +290,7 @@
char *origname;
{
struct stat stslash, stblock, stchar;
+ struct fstab *fsp;
char *newname, *raw;
int retried = 0;
@@ -330,6 +331,11 @@
* Not a block or character device, just return name and
* let the user decide whether to use it.
*/
+ if ((fsp = getfsfile(origname))) {
+ newname = fsp->fs_spec;
+ retried++;
+ goto retry;
+ }
return (origname);
}
--*greywolf;
--
"Do not meddle in the affairs of wizards,
for they become subtle and quick to anger." -- J. R. R. Tolkien