* [Bug 14422] New: EXT4 is corrupted after clean shutdown
@ 2009-10-16 18:31 bugzilla-daemon
2009-10-16 18:33 ` [Bug 14422] " bugzilla-daemon
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: bugzilla-daemon @ 2009-10-16 18:31 UTC (permalink / raw)
To: linux-ext4
http://bugzilla.kernel.org/show_bug.cgi?id=14422
Summary: EXT4 is corrupted after clean shutdown
Product: File System
Version: 2.5
Kernel Version: 2.6.32-rc1 - rc5
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: blocking
Priority: P1
Component: ext4
AssignedTo: fs_ext4@kernel-bugs.osdl.org
ReportedBy: d.okias@gmail.com
Regression: Yes
HW: Toshiba a210-15j
OS: Ubuntu Karmic 9.10 - 64bit
Kernel: 2.6.32-rc1 - rc5
/dev/sda1 /boot 100M ext2
/dev/sda2 / 10G ext4
/dev/sda3 swap
/dev/sda4 /home 100G ext4
After clean shutdown is corrupted lastest used files (KDE configuration, dpkg
/var/cache ... ) on /dev/sda2 sometimes even /dev/sda4
It was repeated several times.
It's really similiar to
http://lkml.indiana.edu/hypermail/linux/kernel/0910.1/02661.html
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 14422] EXT4 is corrupted after clean shutdown
2009-10-16 18:31 [Bug 14422] New: EXT4 is corrupted after clean shutdown bugzilla-daemon
@ 2009-10-16 18:33 ` bugzilla-daemon
2009-10-16 18:33 ` bugzilla-daemon
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2009-10-16 18:33 UTC (permalink / raw)
To: linux-ext4
http://bugzilla.kernel.org/show_bug.cgi?id=14422
--- Comment #1 from okias <d.okias@gmail.com> 2009-10-16 18:33:11 ---
Created an attachment (id=23435)
--> (http://bugzilla.kernel.org/attachment.cgi?id=23435)
dmesg
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 14422] EXT4 is corrupted after clean shutdown
2009-10-16 18:31 [Bug 14422] New: EXT4 is corrupted after clean shutdown bugzilla-daemon
2009-10-16 18:33 ` [Bug 14422] " bugzilla-daemon
@ 2009-10-16 18:33 ` bugzilla-daemon
2009-10-16 23:44 ` bugzilla-daemon
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2009-10-16 18:33 UTC (permalink / raw)
To: linux-ext4
http://bugzilla.kernel.org/show_bug.cgi?id=14422
--- Comment #2 from okias <d.okias@gmail.com> 2009-10-16 18:33:54 ---
Created an attachment (id=23436)
--> (http://bugzilla.kernel.org/attachment.cgi?id=23436)
lspci
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 14422] EXT4 is corrupted after clean shutdown
2009-10-16 18:31 [Bug 14422] New: EXT4 is corrupted after clean shutdown bugzilla-daemon
2009-10-16 18:33 ` [Bug 14422] " bugzilla-daemon
2009-10-16 18:33 ` bugzilla-daemon
@ 2009-10-16 23:44 ` bugzilla-daemon
2009-10-17 7:03 ` bugzilla-daemon
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2009-10-16 23:44 UTC (permalink / raw)
To: linux-ext4
http://bugzilla.kernel.org/show_bug.cgi?id=14422
Eric Sandeen <sandeen@redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sandeen@redhat.com
--- Comment #3 from Eric Sandeen <sandeen@redhat.com> 2009-10-16 23:44:12 ---
When stating that a filesystem is corrupted, please offer some indication of
why you believe this to be true; kernel messages indicating on-disk problems,
fsck output, or at least the behavior you see which indicates corruption.
Otherwise there is simply not enough information to begin any investigation.
If those latest used files are corrupted - how are they corrupted? missing?
short? full of junk? unreadable? or what?
Thanks,
-Eric
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 14422] EXT4 is corrupted after clean shutdown
2009-10-16 18:31 [Bug 14422] New: EXT4 is corrupted after clean shutdown bugzilla-daemon
` (2 preceding siblings ...)
2009-10-16 23:44 ` bugzilla-daemon
@ 2009-10-17 7:03 ` bugzilla-daemon
2009-10-22 13:01 ` bugzilla-daemon
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2009-10-17 7:03 UTC (permalink / raw)
To: linux-ext4
http://bugzilla.kernel.org/show_bug.cgi?id=14422
--- Comment #4 from okias <d.okias@gmail.com> 2009-10-17 07:03:41 ---
fsck.ext4 automatic control fail after reboot. Then if I run manually fsck
/dev/sda2, it write something about shared inode between two files or something
like that. After lot of "yyyyyyyy" it copy some parts of files into /lost+found
I'm not 100% sure, but parts of files are in lost+found and parts remain on
it's old location.
I like to provide fsck logs, but I don't want corrupt my fs again... it's 100%
regression, with =< 2.6.31 problem newer appeared
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 14422] EXT4 is corrupted after clean shutdown
2009-10-16 18:31 [Bug 14422] New: EXT4 is corrupted after clean shutdown bugzilla-daemon
` (3 preceding siblings ...)
2009-10-17 7:03 ` bugzilla-daemon
@ 2009-10-22 13:01 ` bugzilla-daemon
2009-10-22 14:54 ` bugzilla-daemon
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2009-10-22 13:01 UTC (permalink / raw)
To: linux-ext4
http://bugzilla.kernel.org/show_bug.cgi?id=14422
--- Comment #5 from okias <d.okias@gmail.com> 2009-10-22 13:01:41 ---
It's not hardware or architecture related. Conformed on Asus, Kubuntu x86_32
with 2.6.32-rc5
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 14422] EXT4 is corrupted after clean shutdown
2009-10-16 18:31 [Bug 14422] New: EXT4 is corrupted after clean shutdown bugzilla-daemon
` (4 preceding siblings ...)
2009-10-22 13:01 ` bugzilla-daemon
@ 2009-10-22 14:54 ` bugzilla-daemon
2009-10-23 9:11 ` bugzilla-daemon
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2009-10-22 14:54 UTC (permalink / raw)
To: linux-ext4
http://bugzilla.kernel.org/show_bug.cgi?id=14422
--- Comment #6 from Eric Sandeen <sandeen@redhat.com> 2009-10-22 14:54:08 ---
We can try to reproduce, but if there is any possibility of attaching actual
e2fsck output, that would be most helpful.
thanks,
-Eric
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 14422] EXT4 is corrupted after clean shutdown
2009-10-16 18:31 [Bug 14422] New: EXT4 is corrupted after clean shutdown bugzilla-daemon
` (5 preceding siblings ...)
2009-10-22 14:54 ` bugzilla-daemon
@ 2009-10-23 9:11 ` bugzilla-daemon
2009-10-27 10:01 ` bugzilla-daemon
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2009-10-23 9:11 UTC (permalink / raw)
To: linux-ext4
http://bugzilla.kernel.org/show_bug.cgi?id=14422
--- Comment #7 from okias <d.okias@gmail.com> 2009-10-23 09:11:13 ---
Sorry, I can't do that for now. I can offer you steps to reproduce problem
1. Install Kubuntu 9.10 32 or 64bit (for example from Beta image)
2. sda1 /boot about 100M ext2, sda2 / 10G ext4, sda3 swap, sda4 /home ext4...
3. download from this location kernel -
http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.32-rc5/
4. At least 20x correctly shudown machine, until you hit issue... you probably
hit this issue on every machine...
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 14422] EXT4 is corrupted after clean shutdown
2009-10-16 18:31 [Bug 14422] New: EXT4 is corrupted after clean shutdown bugzilla-daemon
` (6 preceding siblings ...)
2009-10-23 9:11 ` bugzilla-daemon
@ 2009-10-27 10:01 ` bugzilla-daemon
2009-10-27 10:16 ` [Bug 14422] New: " Aneesh Kumar K.V
2009-10-27 11:47 ` [Bug 14422] " bugzilla-daemon
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2009-10-27 10:01 UTC (permalink / raw)
To: linux-ext4
http://bugzilla.kernel.org/show_bug.cgi?id=14422
--- Comment #8 from Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> 2009-10-27 10:01:27 ---
Can you try this patch ?
commit a8836b1d6f92273e001012c7705ae8f4c3d5fb65
Author: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Date: Tue Oct 27 15:36:38 2009 +0530
ext4: discard preallocation during truncate
We need to make sure when we drop and reacquire the inode's
i_data_sem we discard the inode preallocation. Otherwise we
could have blocks marked as free in bitmap but still belonging
to prealloc space.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 5c5bc5d..a1ef1c3 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -209,6 +209,12 @@ static int try_to_extend_transaction(handle_t *handle,
struct inode *inode)
up_write(&EXT4_I(inode)->i_data_sem);
ret = ext4_journal_restart(handle, blocks_for_truncate(inode));
down_write(&EXT4_I(inode)->i_data_sem);
+ /*
+ * We have dropped i_data_sem. So somebody else could have done
+ * block allocation. So discard the prealloc space created as a
+ * part of block allocation
+ */
+ ext4_discard_preallocations(inode);
return ret;
}
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [Bug 14422] New: EXT4 is corrupted after clean shutdown
2009-10-16 18:31 [Bug 14422] New: EXT4 is corrupted after clean shutdown bugzilla-daemon
` (7 preceding siblings ...)
2009-10-27 10:01 ` bugzilla-daemon
@ 2009-10-27 10:16 ` Aneesh Kumar K.V
2009-10-27 11:47 ` [Bug 14422] " bugzilla-daemon
9 siblings, 0 replies; 11+ messages in thread
From: Aneesh Kumar K.V @ 2009-10-27 10:16 UTC (permalink / raw)
To: bugzilla-daemon; +Cc: linux-ext4
Can you try this patch ?
commit a8836b1d6f92273e001012c7705ae8f4c3d5fb65
Author: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Date: Tue Oct 27 15:36:38 2009 +0530
ext4: discard preallocation during truncate
We need to make sure when we drop and reacquire the inode's
i_data_sem we discard the inode preallocation. Otherwise we
could have blocks marked as free in bitmap but still belonging
to prealloc space.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 5c5bc5d..a1ef1c3 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -209,6 +209,12 @@ static int try_to_extend_transaction(handle_t *handle, struct inode *inode)
up_write(&EXT4_I(inode)->i_data_sem);
ret = ext4_journal_restart(handle, blocks_for_truncate(inode));
down_write(&EXT4_I(inode)->i_data_sem);
+ /*
+ * We have dropped i_data_sem. So somebody else could have done
+ * block allocation. So discard the prealloc space created as a
+ * part of block allocation
+ */
+ ext4_discard_preallocations(inode);
return ret;
}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [Bug 14422] EXT4 is corrupted after clean shutdown
2009-10-16 18:31 [Bug 14422] New: EXT4 is corrupted after clean shutdown bugzilla-daemon
` (8 preceding siblings ...)
2009-10-27 10:16 ` [Bug 14422] New: " Aneesh Kumar K.V
@ 2009-10-27 11:47 ` bugzilla-daemon
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2009-10-27 11:47 UTC (permalink / raw)
To: linux-ext4
http://bugzilla.kernel.org/show_bug.cgi?id=14422
okias <d.okias@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #9 from okias <d.okias@gmail.com> 2009-10-27 11:47:53 ---
*** This bug has been marked as a duplicate of bug 14354 ***
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-10-27 11:47 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-16 18:31 [Bug 14422] New: EXT4 is corrupted after clean shutdown bugzilla-daemon
2009-10-16 18:33 ` [Bug 14422] " bugzilla-daemon
2009-10-16 18:33 ` bugzilla-daemon
2009-10-16 23:44 ` bugzilla-daemon
2009-10-17 7:03 ` bugzilla-daemon
2009-10-22 13:01 ` bugzilla-daemon
2009-10-22 14:54 ` bugzilla-daemon
2009-10-23 9:11 ` bugzilla-daemon
2009-10-27 10:01 ` bugzilla-daemon
2009-10-27 10:16 ` [Bug 14422] New: " Aneesh Kumar K.V
2009-10-27 11:47 ` [Bug 14422] " bugzilla-daemon
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).