From mboxrd@z Thu Jan 1 00:00:00 1970 From: Evgeniy Dushistov Subject: Re: [PATCH] Mark CONFIG_UFS_FS_WRITE as BROKEN Date: Wed, 1 Feb 2006 18:40:20 +0300 Message-ID: <20060201154020.GA593@rain.homenetwork> References: <20060131234634.GA13773@mipter.zuzino.mipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Return-path: To: Alexey Dobriyan Content-Disposition: inline In-Reply-To: <20060131234634.GA13773@mipter.zuzino.mipt.ru> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org 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 --- --- 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