dir->inode = 0;
I've done some searching with Google for discussion of this feature.
I didn't find any, but I did find a patch that appears to have
introduced the above line and an "annotated" listing of dir.c
suggesting that the line is part of revision 1.2. The patch that
apparently introduced this line looks like it was part of a major
overhaul.
Now, I'm tempted to comment the line out in my kernel and see
what happens. But it does occur to me that hackers with more
experience than I may zeroing the inode number for a reason and
may be depending on it elsewhere in the kernel. Or perhaps the
ext2 flavor of fsck will malfunction if deleted directory entries
have a non-zero inode?
Can anybody suggest a reason for the existence of the above line
in fs/ext2/dir.c? Or possibly suggest what would certainly break
if I removed it in my kernel?
Thanks!
Paul Allen
allenp@nwlink.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/