Messages in this thread Patch in this message | | | Date | Wed, 1 Feb 2006 18:40:20 +0300 | From | Evgeniy Dushistov <> | Subject | Re: [PATCH] Mark CONFIG_UFS_FS_WRITE as BROKEN |
| |
On Wed, Feb 01, 2006 at 02:46:34AM +0300, Alexey Dobriyan wrote: > OpenBSD doesn't see "." correctly in directories created by Linux. The problem is in dir.c:ufs_make_empty, which create "." and ".." entires, in this function i_size isn't updated, so result directory has zero size. This patch should solve the problem, can you try it?
Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru>
---
--- linux-2.6.16-rc1-mm4/fs/ufs/dir.c.orig 2006-02-01 18:29:28.943878250 +0300 +++ linux-2.6.16-rc1-mm4/fs/ufs/dir.c 2006-02-01 18:12:24.043826000 +0300 @@ -539,6 +539,7 @@ int ufs_make_empty(struct inode * inode, return err; inode->i_blocks = sb->s_blocksize / UFS_SECTOR_SIZE; + inode->i_size = sb->s_blocksize; de = (struct ufs_dir_entry *) dir_block->b_data; de->d_ino = cpu_to_fs32(sb, inode->i_ino); ufs_set_de_type(sb, de, inode->i_mode);
-- /Evgeniy
- 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/
| |