From: Oleksij Rempel <bug-track@fisher-privat.net>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>,
linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH 2/2] fat: mark fs as dirty on mount and clean on umount
Date: Thu, 03 Jan 2013 09:46:15 +0100 [thread overview]
Message-ID: <50E54557.8050902@fisher-privat.net> (raw)
In-Reply-To: <20130102154422.53a84995.akpm@linux-foundation.org>
Am 03.01.2013 00:44, schrieb Andrew Morton:
> On Fri, 28 Dec 2012 02:20:20 +0900
> OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> wrote:
>
>> There is no documented methods to mark FAT as dirty. Unofficially MS
>> started to use reserved Byte in boot sector for this purpose,
>> at least since Win 2000. With Win 7 user is warned if fs is dirty
>> and asked to clean it.
>> Different versions of Win, handle it in different ways,
>> but always have same meaning:
>> - Win 2000 and XP, set it on write operations and
>> remove it after operation was finnished
>> - Win 7, set dirty flag on first write and remove it on umount.
>>
>> We will do it as fallow:
>> - set dirty flag on mount. If fs was initially dirty, warn user,
>> remember it and do not do any changes to boot sector.
>> - clean it on umount. If fs was initially dirty, leave it dirty.
>> - do not do any thing if fs mounted read-only.
>> - TODO: leave fs dirty if we found some error after mount.
>
> The changelog doesn't describe why we're making this change. Nor does
> it describe the user-visible effects of this change.
>
> AFAICT the effect is to issue a warning at mount-time to tell the
> user that the fs wasn't cleanly unmounted and that the user should fsck
> the volume, correct?
>
> If so, why is this considered a desirable feature? (I can guess, but
> would prefer to hear it spelled out by the experts, please).
>
FAT is old and still intensively used file system with high number of
data lost. This patch set is a try to reduce this numbers.
To make this work complete, we need some changes in user space too. But
even stand alone, this patchset can warn M$ Windows 7 about probably
damaged FS. In this case Win 7 will inform user and give option to start
checkdisk.
--
Regards,
Oleksij
prev parent reply other threads:[~2013-01-03 8:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-27 17:19 [PATCH 1/2] fat: add extended fileds to struct fat_boot_sector OGAWA Hirofumi
2012-12-27 17:20 ` [PATCH 2/2] fat: mark fs as dirty on mount and clean on umount OGAWA Hirofumi
2013-01-02 23:44 ` Andrew Morton
2013-01-03 8:46 ` Oleksij Rempel [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=50E54557.8050902@fisher-privat.net \
--to=bug-track@fisher-privat.net \
--cc=akpm@linux-foundation.org \
--cc=hirofumi@mail.parknet.co.jp \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome