[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[reiserfs-list] A question for a redhat reiserfs user (oh, mysympathies....)



On 30 Jul 2001 17:26:57 -0700, David Rees wrote:
> On Tue, Jul 31, 2001 at 02:57:59AM +0400, Hans Reiser wrote:
> > A user who wants to be anonymous says:
> > 
> > "In RH 7.1's initscripts package, it appears to me that they only remount /
> > ro in /etc/rc.d/init.d/halt if / is ext2.  I'm not sure if that was just
> > on my system though (was having problems with / being another journaling
> > filesystem, so *every* time the machine got rebooted, / was being marked
> > as unclean and had to go through the full fsck treatment instead of just
> > being quickly checked)."
> > 
> > I don't have a RedHat box to check.  I would hope that when this happens, it
> > runs reiserfsck with the options that cause reiserfsck to take a fraction of a
> > second to exit doing nothing, like happens with SuSE.
> 
> The anonymous user is correct.  This diff to /etc/init.d/halt should fix 
> it.
> 
> --- halt.orig   Mon Jul 30 17:26:24 2001
> +++ halt        Mon Jul 30 17:26:36 2001
> @@ -165,7 +165,7 @@
>  
>  # Remount read only anything that's left mounted.
>  #echo $"Remounting remaining filesystems (if any) readonly"
> -mount | awk '/ext2/ { print $3 }' | while read line; do
> +mount | awk '/ext2|reiserfs/ { print $3 }' | while read line; do
>      mount -n -o ro,remount $line
>  done

I believe it's better like this:

+mount | awk '/ext2|reiserfs|xfs/ { print $3 }' | while read line; do

;-)

--
Florin Andrei