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 t

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 wrote: > On Mon, Oct 19, 2009 at 7:56 AM, Yan, Zheng wrote: >> On Sun, Oct 18, 2009 at 10:35 PM, Prasad Joshi >> wrote: >>> Hi, >>> >>> I tried using the btrfs-convert utility to convert the ext2 fs to >>> btrfs. After the conversion was over, just

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

2009-10-19 Thread Prasad Joshi
On Mon, Oct 19, 2009 at 7:56 AM, Yan, Zheng wrote: > On Sun, Oct 18, 2009 at 10:35 PM, Prasad Joshi > wrote: >> Hi, >> >> I tried using the btrfs-convert utility to convert the ext2 fs to >> btrfs. After the conversion was over, just to verify the correctness >> of operation, ran btrfsck on the