Re: kernel BUG at fs/btrfs/inode.c:2642!

2010-09-10 Thread Zhu Yanhai
Please feel free to forward it, as I don't know the addr for -mm tree. -zyh 2010/9/10 Itaru Kitayama : > > Thank you, Zhu. Would you send the patch to Andrew or should I pass it on to > him? > > Itaru > > On Thu, 9 Sep 2010 23:30:52 +0800 > Zhu Yanhai wrot

Re: kernel BUG at fs/btrfs/inode.c:2642!

2010-09-09 Thread Zhu Yanhai
Hi, That's because btrfs_del_dir_entries_in_log() will return the real errno after Andi's commit, so btrfs_unlink_inode() has to check the return value more seriously. A patch for this has been sent out. Regards, Zhu Yanhai 2010/9/9 Itaru Kitayama : > Hi Chris, > The latest mm

[PATCH] btrfs: Only BUG_ON when the errno is not ENOENT

2010-09-09 Thread Zhu Yanhai
As Andi Kleen's commit 018db35864fd8d307066485a2753866240c3dace makes btrfs_del_dir_entries_in_log() able to return the real errno instead of a zero, we should only BUG_ON it when it's non-zero and not -ENOENT. Signed-off-by: Zhu Yanhai --- fs/btrfs/inode.c |2 +- 1 files

Re: btrfs on LVM: Out of space

2010-09-09 Thread Zhu Yanhai
2010/9/9 Marcel Lohmann : > 2010/9/9 Zhu Yanhai : >> 2010/9/9 Marcel Lohmann : >>> 2010/9/8 Zhu Yanhai : >>> But if it is neccessary to "drop" that duplicate metadata, how can I >>> arrange this afterwards. And if it is done, then I would have reduce

Re: btrfs on LVM: Out of space

2010-09-08 Thread Zhu Yanhai
2010/9/9 Marcel Lohmann : > 2010/9/8 Zhu Yanhai : >> Hi, >> Have you ever tried with 'mkfs.btrfs -m single /dev/'? >> As you had a RAID1 based on LVM, you don't have to keep >> the default duplicated metadata profile in Btrfs. >> >> -zy

Re: btrfs on LVM: Out of space

2010-09-08 Thread Zhu Yanhai
Hi, Have you ever tried with 'mkfs.btrfs -m single /dev/'? As you had a RAID1 based on LVM, you don't have to keep the default duplicated metadata profile in Btrfs. -zyh 2010/9/8 Marcel Lohmann : > Hi, > > I'm really new to btrfs and wanted to give it a try. But now I have > some strange beha

Re: [PATCH] Function btree_get_extent: Incorrect if-else if statement

2010-09-06 Thread Zhu Yanhai
'else if (ret)' branch is just against them. Namely, we should do some thing special when EEXIST, and do another things for all other errors. Regards, Zhu Yanhai -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.k

Re: btrfs-progs (unstable) failing to compile successfully

2010-08-28 Thread Zhu Yanhai
Hi Mat, What's the version of your gcc? I don't have a linux box here at home to test, but it seems like the case we meet in MeeGo after upgrading gcc to some new version, 4.5 maybe. You need #include and in btrfsck.c to fix this. Regards, Zhu Yanhai 2010/8/28 Mat : > Hi guys, &g

Re: What is the status of versioned builds for btrfs-progs

2010-08-26 Thread Zhu Yanhai
nsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html I just had a similar assigned bug in MeeGo distro too. I have to use a GIT snapshot as an upgrade

Author: Zhu Yanhai

2010-05-09 Thread Zhu Yanhai
Make csum_tree_block_size complain about the right thing. It dereferenced a wrong pointer before. diff --git a/disk-io.c b/disk-io.c index addebe1..c1ed8c8 100644 --- a/disk-io.c +++ b/disk-io.c @@ -86,7 +86,7 @@ int csum_tree_block_size(struct extent_buffer *buf, u16 csum_size,

Do you think it's time to tag a new version number for btrfs-progs?

2010-03-04 Thread Zhu Yanhai
Hi Chris, The latest release of btrfs-progs is still v0.19, at 2009-06-11. As it already has some major features since then, do you think it's time to give it a 0.20 version number and release? It will be nice for the various Linux distribution teams to integrate. Thanks, Zhu Yanhai

What's the benefit of COW without checksum?

2010-01-25 Thread Zhu Yanhai
get from COW if not computing checksum (nodatasum)? That's to say, if some user decides to disable checksum, do you think it's fine for him to just mount with 'nodatacow'? Or there's still some reason for him to use bare 'nodatasum'? Thanks & Regards, Zhu Yanhai

Re: btrfs on small (embedded) systems

2009-10-16 Thread Zhu Yanhai
And because Moblin is supposed to run on netbooks, MID and cellphones (with Intel's future moorestown chipset), hopefully we will see btrfs running in MID and cellphones in 2010. 2009/10/17 Zhu Yanhai : > Intel's Moblin (Moblie linux, www.moblin.org) has used btrfs as > default

Re: btrfs on small (embedded) systems

2009-10-16 Thread Zhu Yanhai
Intel's Moblin (Moblie linux, www.moblin.org) has used btrfs as default root filesystem, unless the users choose other filesystems in the installer. 2009/9/28 Tomasz Chmielewski : > FYI - I've been using btrfs with 2.6.31.1 kernel for a few days as a rootfs > on a small mips system (ASUS WL-500gP

[PATCH] Fix btrfs-convert's large file support.

2008-04-27 Thread Zhu Yanhai
Hello, This patch add ext2_inode.i_size_high into account when calculating regular file's size in btrfs-convert, which makes it deal with large files bigger than 4GB properly. Regards, Zhu Yanhai diff -r 1c218a5b9784 convert.c --- a/convert.c Fri Apr 25 16:55:21 2008 -0400