diff options
author | peter <peter@FreeBSD.org> | 1999-12-30 16:32:40 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-12-30 16:32:40 +0000 |
commit | cbb9d1f6aeb80a0256c7e135ae433c3c0cd88768 (patch) | |
tree | 1812f7d9bf0d5ab3dff66c2f32badbee08467058 /sbin/fsck/preen.c | |
parent | 1b64aef9dd86be50db069a17914ff24f904af3f4 (diff) | |
download | FreeBSD-src-cbb9d1f6aeb80a0256c7e135ae433c3c0cd88768.zip FreeBSD-src-cbb9d1f6aeb80a0256c7e135ae433c3c0cd88768.tar.gz |
Make fsck(8) do a MNT_RELOAD after cleaning for all read-only mounted
filesystems, not just for the root fs.
Reviewed by: mckusick
Submitted by: Paul Saab <ps@yahoo-inc.com>
Diffstat (limited to 'sbin/fsck/preen.c')
-rw-r--r-- | sbin/fsck/preen.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sbin/fsck/preen.c b/sbin/fsck/preen.c index fc6dd23..e43aada 100644 --- a/sbin/fsck/preen.c +++ b/sbin/fsck/preen.c @@ -67,7 +67,6 @@ struct disk { } *disks; int nrun, ndisks; -char hotroot; static void addpart __P((char *name, char *fsname, long auxdata)); static struct disk *finddisk __P((char *name)); @@ -298,11 +297,6 @@ blockcheck(origname) struct fstab *fsinfo; int retried = 0, len; - hotroot = 0; - if (stat("/", &stslash) < 0) { - printf("Can't stat /: %s\n", strerror(errno)); - return (origname); - } newname = origname; retry: if (stat(newname, &stblock) < 0) { @@ -312,8 +306,6 @@ retry: switch(stblock.st_mode & S_IFMT) { case S_IFCHR: case S_IFBLK: - if (stslash.st_dev == stblock.st_rdev) - hotroot++; return(newname); case S_IFDIR: if (retried) |