aboutsummaryrefslogtreecommitdiff
path: root/sbin/quotacheck
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-12-30 16:32:40 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-12-30 16:32:40 +0000
commit571b29ee9b580ec4c6fa6e6ed2521839c341bb44 (patch)
tree8096f5b5208f4b69b1bff8df920b7667583c321f /sbin/quotacheck
parent19bf1db2d4641cc44f589f66ce84f070565ba090 (diff)
downloadsrc-571b29ee9b580ec4c6fa6e6ed2521839c341bb44.tar.gz
src-571b29ee9b580ec4c6fa6e6ed2521839c341bb44.zip
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>
Notes
Notes: svn path=/head/; revision=55275
Diffstat (limited to 'sbin/quotacheck')
-rw-r--r--sbin/quotacheck/preen.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sbin/quotacheck/preen.c b/sbin/quotacheck/preen.c
index fc6dd23c4307..e43aada8d10d 100644
--- a/sbin/quotacheck/preen.c
+++ b/sbin/quotacheck/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)