All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH 1/1] Ocfs2: Should ocfs2 support fiemap for S_IFDIR inode?
@ 2009-12-17 10:42 Tristan Ye
  2009-12-17 18:33 ` Sunil Mushran
  0 siblings, 1 reply; 3+ messages in thread
From: Tristan Ye @ 2009-12-17 10:42 UTC (permalink / raw)
  To: ocfs2-devel

Let userspace have a chance to get the extent info of a
directory just like extN did.

Signed-off-by: Tristan Ye <tristan.ye@oracle.com>
---
 fs/ocfs2/namei.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index f010b22..0b9f35e 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@ -2326,4 +2326,5 @@ const struct inode_operations ocfs2_dir_iops = {
 	.getxattr	= generic_getxattr,
 	.listxattr	= ocfs2_listxattr,
 	.removexattr	= generic_removexattr,
+	.fiemap         = ocfs2_fiemap,
 };
-- 
1.6.5.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Ocfs2-devel] [PATCH 1/1] Ocfs2: Should ocfs2 support fiemap for S_IFDIR inode?
  2009-12-17 10:42 [Ocfs2-devel] [PATCH 1/1] Ocfs2: Should ocfs2 support fiemap for S_IFDIR inode? Tristan Ye
@ 2009-12-17 18:33 ` Sunil Mushran
  2009-12-18  1:55   ` tristan
  0 siblings, 1 reply; 3+ messages in thread
From: Sunil Mushran @ 2009-12-17 18:33 UTC (permalink / raw)
  To: ocfs2-devel

Acked-by: Sunil Mushran <sunil.mushran@oracle.com>

I see no reason why we should not add it to symlink and
fast_symlink too. But that would need testing. Make that a
separate patch. This one looks good as is.

Tristan Ye wrote:
> Let userspace have a chance to get the extent info of a
> directory just like extN did.
>
> Signed-off-by: Tristan Ye <tristan.ye@oracle.com>
> ---
>  fs/ocfs2/namei.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
> index f010b22..0b9f35e 100644
> --- a/fs/ocfs2/namei.c
> +++ b/fs/ocfs2/namei.c
> @@ -2326,4 +2326,5 @@ const struct inode_operations ocfs2_dir_iops = {
>  	.getxattr	= generic_getxattr,
>  	.listxattr	= ocfs2_listxattr,
>  	.removexattr	= generic_removexattr,
> +	.fiemap         = ocfs2_fiemap,
>  };

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Ocfs2-devel] [PATCH 1/1] Ocfs2: Should ocfs2 support fiemap for S_IFDIR inode?
  2009-12-17 18:33 ` Sunil Mushran
@ 2009-12-18  1:55   ` tristan
  0 siblings, 0 replies; 3+ messages in thread
From: tristan @ 2009-12-18  1:55 UTC (permalink / raw)
  To: ocfs2-devel

Sunil Mushran wrote:
> Acked-by: Sunil Mushran <sunil.mushran@oracle.com>
>
> I see no reason why we should not add it to symlink and
> fast_symlink too. But that would need testing. Make that a
> separate patch. This one looks good as is.
Yes, I've tested on directory, it works for me.

Will take a look at symlink and fast_symlink.

Tristan.
>
> Tristan Ye wrote:
>> Let userspace have a chance to get the extent info of a
>> directory just like extN did.
>>
>> Signed-off-by: Tristan Ye <tristan.ye@oracle.com>
>> ---
>>  fs/ocfs2/namei.c |    1 +
>>  1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
>> index f010b22..0b9f35e 100644
>> --- a/fs/ocfs2/namei.c
>> +++ b/fs/ocfs2/namei.c
>> @@ -2326,4 +2326,5 @@ const struct inode_operations ocfs2_dir_iops = {
>>      .getxattr    = generic_getxattr,
>>      .listxattr    = ocfs2_listxattr,
>>      .removexattr    = generic_removexattr,
>> +    .fiemap         = ocfs2_fiemap,
>>  };
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-18  1:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-17 10:42 [Ocfs2-devel] [PATCH 1/1] Ocfs2: Should ocfs2 support fiemap for S_IFDIR inode? Tristan Ye
2009-12-17 18:33 ` Sunil Mushran
2009-12-18  1:55   ` tristan

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.