From: "Stephen C. Tweedie" <sct@redhat.com>
To: Duncan Sands <duncan.sands@math.u-psud.fr>
Cc: Seaman Hu <seaman_hu@yahoo.com>,
ext3-users@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: What will happen when disk(ext3) is full while i continue to operate files ?
Date: Fri, 20 Sep 2002 10:51:53 +0100 [thread overview]
Message-ID: <20020920105153.H2585@redhat.com> (raw)
In-Reply-To: <200209201125.09062.duncan.sands@math.u-psud.fr>; from duncan.sands@math.u-psud.fr on Fri, Sep 20, 2002 at 11:25:09AM +0200
[-- Attachment #1: Type: text/plain, Size: 470 bytes --]
Hi,
On Fri, Sep 20, 2002 at 11:25:09AM +0200, Duncan Sands wrote:
> The problem is that it is quite tricky to recover from this.
Actually, mounting with "errors=continue" should let the filesystem
ignore the failure.
> What
> you need to do is delete files on the disk in order to have some
> free inodes. Then you can apply a kernel patch to fix the bug
> (Andrew Morton sent me this patch against 2.5.20:
The official patch in 2.4 is attached.
Cheers,
Stephen
[-- Attachment #2: 0827-inode-enospc.patch --]
[-- Type: text/plain, Size: 797 bytes --]
---------------------
PatchSet 827
Date: 2002/04/10 18:02:19
Author: sct
Log:
Don't consider ENOSPC as a fatal error when allocating an inode. Otherwise
running out of inodes marks the fs as having an error, potentially taking
the kernel down if we are in panic-on-error fs mode.
Members:
fs/ext3/ialloc.c:1.19.4.4->1.19.4.5 [ext3-1_0-branch]
--- linux-ext3-2.4merge/fs/ext3/ialloc.c.=K0001=.orig Sat Aug 17 20:09:51 2002
+++ linux-ext3-2.4merge/fs/ext3/ialloc.c Mon Aug 19 18:48:50 2002
@@ -392,7 +392,7 @@
err = -ENOSPC;
if (!gdp)
- goto fail;
+ goto out;
err = -EIO;
bitmap_nr = load_inode_bitmap (sb, i);
@@ -523,9 +523,10 @@
return inode;
fail:
+ ext3_std_error(sb, err);
+out:
unlock_super(sb);
iput(inode);
- ext3_std_error(sb, err);
return ERR_PTR(err);
}
prev parent reply other threads:[~2002-09-20 9:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-20 7:39 Seaman Hu
2002-09-20 9:11 ` Seaman Hu
2002-09-20 9:20 ` Stephen C. Tweedie
2002-09-20 9:27 ` Duncan Sands
2002-09-20 9:44 ` Stephen C. Tweedie
2002-09-20 9:25 ` Duncan Sands
2002-09-20 9:51 ` Stephen C. Tweedie [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=20020920105153.H2585@redhat.com \
--to=sct@redhat.com \
--cc=duncan.sands@math.u-psud.fr \
--cc=ext3-users@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=seaman_hu@yahoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®