All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Steigerwald <Martin@lichtvoll.de>
To: linux-xfs@oss.sgi.com
Subject: Re: Question for XFS (mounting and clean bit)
Date: Thu, 29 May 2008 10:09:35 +0200	[thread overview]
Message-ID: <200805291009.36229.Martin@lichtvoll.de> (raw)
In-Reply-To: <483E5462.1080604@sgi.com>

Am Donnerstag 29 Mai 2008 schrieb Timothy Shimmin:
> Hi Andre,

Hi Timothy,

> I didn't follow all of this, sorry.
> When you ask about the "clean bit", I assume that you are referring
> to "clean XFS mount for filesystem".
> We effectively mark it clean if we do a successful unmount.
> As part of unmount, we write an unmount record into the xfs log.
> On the next mount we look for the head of the log and then for the
> unmount record nearby. If we find the unmount record then we know
> we have had a clean unmount previously, otherwise we replay the log.
> So it's really a question of doing an unmount versus resetting the
> box beforehand or forcing a shutdown beforehand.

But when is it dirtied? If the clean log entry is the actual "clean bit" I 
guess: When the first new entry is written in the log.

Does XFS write a log entry on mounting it already or only on the first 
real write? Or in other words if I mount a XFS filesystem without writing 
to it and reset the machine, would it be marked clean or dirty then? 
Hmmm, I could test this ;-).

If its only mounted read only, it shouldn't be marked dirty anyways.

Ciao,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

  reply	other threads:[~2008-05-29  8:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-27 16:13 Question for XFS (mounting and clean bit) Andre Nitschke
2008-05-28 22:21 ` Martin Steigerwald
2008-05-29  6:59 ` Timothy Shimmin
2008-05-29  8:09   ` Martin Steigerwald [this message]
2008-05-30  5:58     ` Timothy Shimmin
2008-05-29  8:02 ` Martin Steigerwald
2008-05-29  8:04   ` Martin Steigerwald

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=200805291009.36229.Martin@lichtvoll.de \
    --to=martin@lichtvoll.de \
    --cc=linux-xfs@oss.sgi.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.