From: Theodore Tso <tytso@mit.edu>
To: "Rogério Brito" <rbrito@ime.usp.br>
Cc: Alexandre Lymberopoulos <lymber@gmail.com>,
502583@bugs.debian.org, 502583-submitter@bugs.debian.org,
linux-kernel@vger.kernel.org
Subject: Re: Bug#502583: scary messages in dmesg
Date: Tue, 21 Oct 2008 08:33:48 -0400 [thread overview]
Message-ID: <20081021123348.GB15685@mit.edu> (raw)
In-Reply-To: <20081021101510.GA16244@ime.usp.br>
On Tue, Oct 21, 2008 at 08:15:10AM -0200, Rogério Brito wrote:
> On Oct 20 2008, Alexandre Lymberopoulos wrote:
> > It's not a memory stick, it's a hard disk with ext3 file system. I
> > just plugged it it and the disk was automatically mounted in /dev/ext3
> > with no abnormal messages in dmesg.
>
> Ok, this far.
>
> > That weird messages appeared when I unpplugged the disk (without
> > umounting it, as it should be done when using usbmount, right?).
>
> Did you sync the device? From the message, it seems that some data were to
> be written to the device, but the device was already gone by that time, but
> I'm not a specialist on the filesystem subsystem and perhaps others could
> say more about it.
A patch to suppress the WARN information will be in 2.6.28 when the
user does something stupid (i.e., yank out a USB stick without
unmounting the filesystem first). This was done mainly to suppress
the "scary message" in dmesg, which on distributions that support
uploading such messages to http://www.kerneloops.org for analysis, was
cluttering the reports.
However, the patch does not make it any *safer* to uncerimoniously
yank out a USB stick without unmounting it first. This can still lead
to data loss, unless you're *sure* that no process is writing to the
stick and you issued the sync command, and you know enough time has
passed so all of the data has been written to the USB stick.
> > > [39071.160167] Buffer I/O error on device sda1, logical block 1545
> > > [39071.160170] lost page write due to I/O error on sda1
> > > [39071.160184] Buffer I/O error on device sda1, logical block 1545
> > > [39071.160187] lost page write due to I/O error on sda1
These errors you'd still get, since these messages are the sound of
users' data being irretrivably being lost.
> Well, it is a bug. It just needs more investigation to see where the bug
> lies.
I don't know if you would call it a bug or not. Fundamentally,
yanking out a USB stick without unmounting it first is dangerous, and
can lead to data loss. Printing the stack trace when this happens
implies it's a problem which can be fixed by a developer, so perhaps
that could be considered a bug, and in any case, that should be
"fixed" in 2.6.28. (I'm pretty sure akpm has sent the ext3 version of
that patch to Linus by now, but if not, it should make the 2.6.28
merge window.)
If you see "lost page write due to I/O error", then you will have lost
data due to premature removal of the USB stick, and fundamentally
*that* bug exists between the keyboard and the chair.
Regards,
- Ted
next prev parent reply other threads:[~2008-10-21 12:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2bfaaf400810172145g4aba4827l87a19e67b9742815@mail.gmail.com>
2008-10-18 6:04 ` Bug#502583: scary messages in dmesg Rogério Brito
2008-10-20 23:54 ` Alexandre Lymberopoulos
2008-10-21 10:15 ` Rogério Brito
2008-10-21 12:33 ` Theodore Tso [this message]
2008-10-21 14:35 ` Rogério Brito
2008-10-21 15:31 ` Theodore Tso
2008-10-21 15:43 ` Jon Smirl
2008-10-21 21:21 ` Alexandre Lymberopoulos
2008-10-21 20:55 ` Alexandre Lymberopoulos
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=20081021123348.GB15685@mit.edu \
--to=tytso@mit.edu \
--cc=502583-submitter@bugs.debian.org \
--cc=502583@bugs.debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lymber@gmail.com \
--cc=rbrito@ime.usp.br \
/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