public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Hans Reiser <reiser@namesys.com>
To: Mack Stevenson <mackstevenson@hotmail.com>
Cc: linux-kernel@vger.kernel.org, _deepfire@mail.ru,
	Chris Mason <mason@suse.com>,
	Edward Shushkin <edward@mail.infotel.ru>
Subject: Re: Basic reiserfs question
Date: Thu, 06 Sep 2001 16:56:59 +0400	[thread overview]
Message-ID: <3B97729B.1F49AACA@namesys.com> (raw)
In-Reply-To: <F45bR99kQgkV07DPT1p00005d9e@hotmail.com>

It seems that we should put something in journal replay that says:

"Warning: replaying a non-empty journal, this means that either your system
crashed, or its shutdown scripts need fixing (a common distro failing at the
moment), or you pushed the power button.  Don't use the hardware power button to
turn your computer off before telling the operating system software to halt
(there exists a 'halt' command you can use), the risk in doing so is that the
files you or your software were writing to at the time you pushed the button can
have garbage added to them."

Chris, do you agree?  Edward, please make this change and create a patch.

Of course, now that the distros have turned off all those annoying messages from
the kernel, most users will never see this, sigh.  I think it is a real problem
that the distros have turned off the messages at boot time....

Hans


Mack Stevenson wrote:
> 
> >Mack Stevenson wrote:
> > >
> > > I would like to know whether log replays take place whenever the system
> >is
> > > booted or only after it has been incorrectly shutdown. I occasionaly see
> > > "Warning, log replay (...)" during the boot-up sequence although the
> >system
> > > had been correctly shut down, and I would like to know if I should
> >worry.
> 
> >From: Hans Reiser <reiser@namesys.com>
> >To: Mack Stevenson <mackstevenson@hotmail.com>
> >CC: linux-kernel@vger.kernel.org
> >Subject: Re: Basic reiserfs question
> >Date: Thu, 06 Sep 2001 01:50:59 +0400
> >
> >
> >Are you using redhat?  Do your shutdown scripts unmount the filesystem only
> >if
> >it is ext2?
> 
> I am using slackware (8.0), and the shutdown script on my system uses:
> 
> # Turn off swap, then unmount local file systems.
> echo "Turning off swap."
> swapoff -a
> echo "Unmounting local file systems."
> # Don't remount UMSDOS root volumes:
> if [ ! "`mount | head -1 | cut -d ' ' -f 5`" = "umsdos" ]; then
>   umount -a -r -t nonfs
>   echo "Remounting root filesystem read-only."
>   mount -n -o remount,ro /
> else
>   umount -a -r -t nonfs,noumsdos,nosmbfs
> fi
> 
> # This never hurts:
> sync
> 
> ---
> 
> I guess that's not the probem, then... Actually, whenever I shutdown I never
> see any messages about the unmounting (or the mounting in readonly mode)
> failing, which only adds to my confusion.
> 
> >From: Samium Gromoff <_deepfire@mail.ru>
> >To: linux-kernel@vger.kernel.org
> >CC: mackstevenson@hotmail.com
> >Subject: Re: Basic reiserfs question
> >Date: Thu, 6 Sep 2001 03:35:49 +0000 (UTC)
> >
> >Actually you see "Warning" only when it is replaying log on
> >fs mounted readonly.
> 
> Yes, that's the warning I see.
> 
> >I wander though why you see it only "occasionally"..
> >Normally it replays log every time and you shouldnt bother.
> 
> Does it? I know next to nothing about these issues, but I thought that I had
> read somewhere that log replays only occurred after a system crashed and
> couldn't be shutdown properly.
> 
> Thank you both,
> 
> Mack S.
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

  reply	other threads:[~2001-09-06 13:41 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-06 13:00 Basic reiserfs question Mack Stevenson
2001-09-06 12:56 ` Hans Reiser [this message]
2001-09-06 14:09   ` Bob McElrath
2001-09-06 22:38   ` Chris Mason
2001-09-07  0:02   ` Re[2]: " Nerijus Baliunas
2001-09-07  0:22     ` replaying reiserfs journal and bad blocks (was: Re[3]: Basic reiserfs question) Nerijus Baliunas
2001-09-07  7:50     ` Basic reiserfs question Hans Reiser
2001-09-07 13:35       ` Re[2]: " Nerijus Baliunas
2001-09-09 10:10         ` Henning P. Schmiedehausen
2001-09-07 16:26       ` Nerijus Baliunas
     [not found]     ` <20010907002247.6A4418F703@mail.delfi.lt>
2001-09-07  7:54       ` replaying reiserfs journal and bad blocks (was: Re[3]: Basic reiserfs question) Hans Reiser
2001-09-07  9:48         ` replaying reiserfs journal and bad blocks (was: Re[3]: Basic Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2001-09-08  0:24 Basic reiserfs question Mack Stevenson
2001-09-07 11:38 Mack Stevenson
2001-09-07 17:04 ` Andreas Dilger
2001-09-06  3:35 Samium Gromoff
2001-09-05 22:14 Mack Stevenson
2001-09-05 21:50 ` Hans Reiser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B97729B.1F49AACA@namesys.com \
    --to=reiser@namesys.com \
    --cc=_deepfire@mail.ru \
    --cc=edward@mail.infotel.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mackstevenson@hotmail.com \
    --cc=mason@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox