From owner-freebsd-fs Wed Sep 8 11: 8:58 1999 Delivered-To: freebsd-fs@freebsd.org Received: from pawn.primelocation.net (pawn.primelocation.net [205.161.238.235]) by hub.freebsd.org (Postfix) with ESMTP id 072301506B; Wed, 8 Sep 1999 11:08:52 -0700 (PDT) (envelope-from jedgar@fxp.org) Received: by pawn.primelocation.net (Postfix, from userid 1003) id 7F8A2F817; Wed, 8 Sep 1999 14:07:44 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by pawn.primelocation.net (Postfix) with ESMTP id 71FF09B1C; Wed, 8 Sep 1999 14:07:44 -0400 (EDT) Date: Wed, 8 Sep 1999 14:07:44 -0400 (EDT) From: "Chris D. Faulhaber" X-Sender: jedgar@pawn.primelocation.net To: Zhihui Zhang Cc: Luoqi Chen , freebsd-fs@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: The usage of MNT_RELOAD In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 8 Sep 1999, Zhihui Zhang wrote: > > On Wed, 8 Sep 1999, Luoqi Chen wrote: > > > > The flag MNT_RELOAD is not documented in mount manpages. From the source > > > code, I find that it is always used along with MNT_UPDATE which can be > > > speficied by user (-u option). Can anyone explain the usage of MNT_RELOAD > > > for me? It seems not to be used normally. > > > > > It is created almost exclusively for fsck (and similar programs) to update > > the in core image of the superblock (of / in single user mode) after the > > on disk version has been modified. > > > > Does fsck have to run on a MOUNTED filesystem? If so, your answer makes > sense to me: if fsck modifies the on-disk copy of the superblock, it does > not have to unmount and then remount the filesystem, it only need to > reload the superlock for disk. > Filesystems do not have to be mounted to fsck them (in fact, it is generally bad to have them mounted rw when fsck'd); however, in order for the root filesystem to be fsck'd on boot, it must be mounted ro in order to access the fsck program itself. After done fsck'ing, it can remount rw for normal operation, done without actually unmounting the filesystem. ----- Chris D. Faulhaber | All the true gurus I've met never System/Network Administrator, | claimed they were one, and always Reality Check Information, Inc. | pointed to someone better. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message