From: TaoMa <tao.ma@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH 07/16] Add extent tree operation for xattr value.
Date: Thu, 21 Aug 2008 10:14:12 +0800 [thread overview]
Message-ID: <48ACCF74.1000900@oracle.com> (raw)
In-Reply-To: <20080821020255.GD4563@wotan.suse.de>
Mark Fasheh wrote:
> On Thu, Aug 21, 2008 at 09:35:24AM +0800, Tao Ma wrote:
>
>> Mark Fasheh wrote:
>>
>>> [ Joel, good catch ]
>>>
>>> On Thu, Aug 21, 2008 at 09:03:09AM +0800, Tao Ma wrote:
>>>
>>>
>>>>> BUG when growing that xattr extent tree?
>>>>> Next, a few lines down:
>>>>>
>>>>> mlog_bug_on_msg(!ocfs2_sparse_alloc(osb) &&
>>>>> (OCFS2_I(inode)->ip_clusters != cpos),
>>>>> "Device %s, asking for sparse allocation: inode
>>>>> %llu, "
>>>>> "cpos %u, clusters %u\n",
>>>>> osb->dev_str,
>>>>> (unsigned long long)OCFS2_I(inode)->ip_blkno,
>>>>> cpos,
>>>>> OCFS2_I(inode)->ip_clusters);
>>>>>
>>>>> Won't that BUG() when cpos of an xattr extent is not matching the
>>>>> ip_clusters of the data?
>>>>>
>>>>>
>>>>>
>>>> yeah, you are right, we should move these 2 into
>>>> ocfs2_dinode_insert_extent. thx.
>>>>
>>>>
>>> It might be a good idea for us to run this on a file system without sparse
>>> file support to catch any issues that don't show up during review.
>>> Probably,
>>> running with / without inline-data helps too. Conceptually though, we
>>> should
>>> be safe - anything that supports EA's has all the sparse-file code,
>>> regardless of whether we allow the inode data btree to be sparse or not.
>>> It's all just a matter of making sure the proper checks are in the right
>>> place.
>>>
>>>
>> Yes, we may need to add some test cases for inline-data volume. As for
>> sparse, currently, in Tiger's mkfs patch, xattr depends on sparse, so it
>> will add sparse automatically, so I am not sure whether we can test
>> xattr without sparse.
>>
>
> It should *not* depend on sparse. I'm pretty sure we discussed this
> already...
>
Sorry for my bad memory :(, but I really can't recall it.
As for xattr tree, we should have a very large possibility that we will
have a sparse tree because of the hash value.
So we don't allow the user to use extent tree when he doesn't set
"sparse"? only large ea are supported then?
That also means I should add another bug fix to check whether the sparse
is enabled when creating a xattr tree.
Regards,
Tao
next prev parent reply other threads:[~2008-08-21 2:14 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-18 7:49 [Ocfs2-devel] [PATCH 0/16] OCFS2: Add extended attributes support. V4 TaoMa
2008-08-18 9:08 ` [Ocfs2-devel] [PATCH 08/16] ocfs2: reserve inline space for extended attribute v4 Tiger Yang
2008-08-18 9:11 ` [Ocfs2-devel] [PATCH 09/16] ocfs2: Add extended attribute support v4 Tiger Yang
2008-08-18 9:11 ` [Ocfs2-devel] [PATCH 16/16] ocfs2: Add incompatible flag for extended attribute v4 Tiger Yang
2008-08-18 9:38 ` [Ocfs2-devel] [PATCH 01/16] Modify ocfs2_num_free_extents for future xattr usage Tao Ma
2008-08-18 9:38 ` [Ocfs2-devel] [PATCH 02/16] Use ocfs2_extent_list instead of ocfs2_dinode Tao Ma
2008-08-18 9:38 ` [Ocfs2-devel] [PATCH 03/16] Abstract ocfs2_extent_tree in b-tree operations Tao Ma
2008-08-18 9:38 ` [Ocfs2-devel] [PATCH 04/16] Make extend allocation generic Tao Ma
2008-08-18 9:38 ` [Ocfs2-devel] [PATCH 05/16] Add xattr header in ocfs2 Tao Ma
2008-08-18 9:38 ` [Ocfs2-devel] [PATCH 06/16] Add helper function in uptodate for removing xattr clusters Tao Ma
2008-08-18 9:38 ` [Ocfs2-devel] [PATCH 07/16] Add extent tree operation for xattr value Tao Ma
2008-08-21 0:57 ` Joel Becker
2008-08-21 1:03 ` TaoMa
2008-08-21 1:21 ` Mark Fasheh
2008-08-21 1:35 ` TaoMa
2008-08-21 2:02 ` Mark Fasheh
2008-08-21 2:14 ` TaoMa [this message]
2008-08-21 2:18 ` Joel Becker
2008-08-21 2:30 ` TaoMa
2008-08-18 9:38 ` [Ocfs2-devel] [PATCH 10/16] Add xattr tree operations in ocfs2_extent_tree Tao Ma
2008-08-18 9:38 ` [Ocfs2-devel] [PATCH 11/16] Add xattr bucket iteration for large numbers of EAs Tao Ma
2008-08-18 9:38 ` [Ocfs2-devel] [PATCH 12/16] Add xattr find process for xattr index btree Tao Ma
2008-08-18 9:38 ` [Ocfs2-devel] [PATCH 13/16] Refactor ocfs2_insert_extent for not-merging Tao Ma
2008-08-18 9:38 ` [Ocfs2-devel] [PATCH 14/16] Enable xattr set in index btree Tao Ma
2008-08-18 9:38 ` [Ocfs2-devel] [PATCH 15/16] Delete all xattr buckets in inode removal Tao Ma
2008-08-19 23:16 ` [Ocfs2-devel] [PATCH 0/16] OCFS2: Add extended attributes support. V4 Mark Fasheh
2008-08-20 10:00 ` TaoMa
2008-08-22 20:18 ` Mark Fasheh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48ACCF74.1000900@oracle.com \
--to=tao.ma@oracle.com \
--cc=ocfs2-devel@oss.oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.