From: Ted Ts'o <tytso@mit.edu>
To: Hin-Tak Leung <htl10@users.sourceforge.net>
Cc: tytso@users.sourceforge.net,
Ext4 Developers List <linux-ext4@vger.kernel.org>
Subject: Re: sane fsck default behavior for "Entry ... in ... has deleted/unused inode .... Clear? yes"
Date: Sun, 5 Feb 2012 19:03:53 -0500 [thread overview]
Message-ID: <20120206000353.GA13391@thunk.org> (raw)
In-Reply-To: <1328377990.1636.YahooMailClassic@web29504.mail.ird.yahoo.com>
On Sat, Feb 04, 2012 at 05:53:10PM +0000, Hin-Tak Leung wrote:
>
> Fair enough - I just thought the interaction between usb-storage and
> lvm2 would warrant some wider discussion.
If device driver thinks the device has disappeared, and then it
reappears so that it gets a new identity (i.e. sdb -> sdc), the
problem is below LVM2. It's either a problem with the hardware
actually disconnecting from the USB bus, or the with the device
driver. But the people who have expertise with the USB device driver
and the USB hardware aren't going to be on fs-devel.
> That files are lost forever I understand, but from a user's point of
> view, the most important thing is preserving data, or at least, when
> lost is inevitable, know that they are lost and hope to recover that
> somewhere. Is it possible to offer that - i.e. prompt for a log file
> - when such a decision is needed, when run interactively?
If you know that fsck has failed with the automatic (preen) pass, such
that you are running fsck interactively by definition you know there
will be some decision that will be required. So why not always use
the script command when you're running e2fsck interactively?
We could replicate the functionality of script in e2fsck, but given
that script is a perfectly good implementation, it's not clear it's
worth it.
> > It may very well be the SATA->USB enclosure is reporting some
> > error much worse than a read error as a result of the error.
>
> Thanks. The curious thing is that running hdparm -a0/-A0 can get
> around the reset, so it seems to be a performance related issue.
Well, we don't know that. This is why you really need to get the USB
storage folks involved, and they don't hang out on fs-devel.
- Ted
prev parent reply other threads:[~2012-02-06 0:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-04 2:51 sane fsck default behavior for "Entry ... in ... has deleted/unused inode .... Clear? yes" Hin-Tak Leung
2012-02-04 14:03 ` Theodore Tso
2012-02-04 17:53 ` Hin-Tak Leung
2012-02-06 0:03 ` Ted Ts'o [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=20120206000353.GA13391@thunk.org \
--to=tytso@mit.edu \
--cc=htl10@users.sourceforge.net \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@users.sourceforge.net \
/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;
as well as URLs for NNTP newsgroup(s).