All of lore.kernel.org
 help / color / mirror / Atom feed
From: "\"Andrés G. Aragoneses [ knocte ]\"" <knocte@gmail.com>
To: linux-ext4@vger.kernel.org
Subject: Re: Discussion about a "dirty bit" in the filesystem
Date: Wed, 01 Nov 2006 20:24:28 +0100	[thread overview]
Message-ID: <4548F46C.7030006@gmail.com> (raw)
In-Reply-To: <20061022010950.GC9082@thunk.org>

Thanks for your comments Theodore.

Sorry for the delay answering this. See inline,

> I'm not at all sure what this has to do with ext4 at all.  The last
> message indicates a major problem with your request, which is that if
> a FAT partition is mounted by Linux, and in the middle of being
> modified when the system is undergoing hibernation, and then Windows
> is booted and modifies the filesystem, you can lose data.  But that's
> because the FAT filesystem can be understood by both Windows and
> Linux.  (Presumably this problem would also occur, in a much worse
> case, using NTFS.)  But this has nothing to do with ext4.

Well, forget for the moment that other filesystems exist and imagine the
same situation with ext filesystems. Implementing the "dirty" bit we
could avoid mounting a filesystem that is in use by an hibernated partition.

The feature, as is, is not very useful if it's only implemented in
ext3/ext4, but it would be a nice proof of concept and probably makes
other filesystem vendors implement the same.

> I can imagine someone writing an improved hibernate script which
> checks to see if a filesystem which could be understood by Windows
> (i.e., FAT or NTFS) is mounted, and if any such filesystems are
> mounted, disable the ability to boot into Windows after the
> hibernation.  I could even imagine an improved hibernate script which
> detects this case, and attempts to unmount the FAT and NTFS
> filesystems, and if it could successfully unmount them all, allow the
> user to reboot into Windows after hibernation.

For an hibernation script to detect this, first we must implement the
feature to allow the script to detect it, so this is what I am asking for.

Perhaps now I have been clearer?

Thanks,

	Andrés	[ knocte ]

-- 

      reply	other threads:[~2006-11-01 19:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-21 19:39 Discussion about a "dirty bit" in the filesystem "Andrés G. Aragoneses [ knocte ]"
2006-10-22  1:09 ` Theodore Tso
2006-11-01 19:24   ` "Andrés G. Aragoneses [ knocte ]" [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=4548F46C.7030006@gmail.com \
    --to=knocte@gmail.com \
    --cc=linux-ext4@vger.kernel.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 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.