Re: Errors in btrfsck after converting ext2 FS to btrfs.

2009-10-19 Thread Yan, Zheng
On Mon, Oct 19, 2009 at 3:17 PM, Prasad Joshi prasadjoshi...@gmail.com wrote: On Mon, Oct 19, 2009 at 7:56 AM, Yan, Zheng yanzh...@21cn.com wrote: On Sun, Oct 18, 2009 at 10:35 PM, Prasad Joshi prasadjoshi...@gmail.com wrote: Hi, I tried using the btrfs-convert utility to convert the ext2

Proper error handling on NULL pointers

2009-10-19 Thread Andi Drebes
Hi! I recently posted a message that addresses the usage of BUG_ON for memory shortages concerning btrfs_alloc_path() (see [1]): ... path = btrfs_alloc_path(); BUG_ON(!path); ret = btrfs_search_slot(NULL, root, search_key, path, 0, 0); ... It seems that