FreeBSD Bugzilla – Attachment 166011 Details for
Bug 206530
ext2fs: fsck.ext3 reports "Inode 157938 has INDEX_FL flag set but is not a directory"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Initialize the inode's i_flag to 0 during allocation
0001-Initialize-the-inode-s-i_flag-to-0-during-allocation.patch (text/plain), 846 bytes, created by
Damjan Jovanovic
on 2016-01-23 16:03:22 UTC
(
hide
)
Description:
Initialize the inode's i_flag to 0 during allocation
Filename:
MIME Type:
Creator:
Damjan Jovanovic
Created:
2016-01-23 16:03:22 UTC
Size:
846 bytes
patch
obsolete
>From c217dfae3a491c1699bab3be4d781d10c7cf6d3c Mon Sep 17 00:00:00 2001 >From: Damjan Jovanovic <damjan.jov@gmail.com> >Date: Sat, 23 Jan 2016 17:56:04 +0200 >Subject: [PATCH] Initialize the inode's i_flag to 0 during allocation, so that > inodes don't end up with wrong flags from old inodes. > >--- > sys/fs/ext2fs/ext2_alloc.c | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/sys/fs/ext2fs/ext2_alloc.c b/sys/fs/ext2fs/ext2_alloc.c >index 935cb0c..12067d2 100644 >--- a/sys/fs/ext2fs/ext2_alloc.c >+++ b/sys/fs/ext2fs/ext2_alloc.c >@@ -393,6 +393,7 @@ ext2_valloc(struct vnode *pvp, int mode, struct ucred *cred, struct vnode **vpp) > * Linux doesn't read the old inode in when it is allocating a > * new one. I will set at least i_size and i_blocks to zero. > */ >+ ip->i_flag = 0; > ip->i_size = 0; > ip->i_blocks = 0; > ip->i_mode = 0; >-- >2.6.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 206530
: 166011 |
166027