public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Charlie C <phceac@yahoo.com>
To: gentoo-dev@gentoo.org
Subject: [gentoo-dev] Re: checkfs error
Date: Thu, 16 Oct 2003 01:27:23 +0200	[thread overview]
Message-ID: <bmkl53$69a$1@sea.gmane.org> (raw)
In-Reply-To: <1066245347.19797.5.camel@nosferatu.lan>

Martin Schlemmer wrote:
> On Wed, 2003-10-15 at 07:53, Jani Monoses wrote:
> ...
>> You are using an old version, or did not update your check* scripts,
>> as this was fixed in July (?) already.

That's true, but the new version is (i think) worse.
Now, it appears, return values of 1,2 or 3 do nothing, even though both 
2 and 3 should cause a reboot (unless I'm missing something).
All the rest cause a sulogin, and then ... no reboot. This seems to be 
taking a few chances with the users filesystems.

man fsck says to me that we must do a bitwise and between 2 and the 
return value to determine whether a reboot is required. i.e.:
   if  [  $((retval & 2)) != 0 ] ; then
       ewarn "fsck requires a reboot"
       rebootrequired="yes"
   fi
And common sense tells me that it would be prudent to do a reboot after 
any manual fsck-ing, when retval > 3

I've got a heavily modified version of the checkfs script(excerpt 
above). Having had some "heart-in-the-mouth" moments with the previous 
version, it's one of the things I keep an eye on...perhaps I'll have to 
submit it to bugzilla.

Charlie






--
gentoo-dev@gentoo.org mailing list


      reply	other threads:[~2003-10-15 23:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-15  5:53 [gentoo-dev] checkfs error Jani Monoses
2003-10-15 19:15 ` Martin Schlemmer
2003-10-15 23:27   ` Charlie C [this message]

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='bmkl53$69a$1@sea.gmane.org' \
    --to=phceac@yahoo.com \
    --cc=gentoo-dev@gentoo.org \
    /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