From: tristan.ye <tristan.ye@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH 2/2] Ocfs2: Add new OCFS2_IOC_INFO ioctl for ocfs2 v6.
Date: Sat, 06 Feb 2010 21:42:08 +0800 [thread overview]
Message-ID: <4B6D71B0.4070005@oracle.com> (raw)
In-Reply-To: <20100205162739.GA25027@lst.de>
Christoph Hellwig Wrote:
> On Fri, Feb 05, 2010 at 05:59:20PM +0800, Tristan Ye wrote:
>
>> Major changes from v4 to v5:
>>
>> Fix a ptr passing bug on PPC machine, that is, 32bits binary running
>> on 64bits kernel needs to use compat_ptr() to reterive the right ptr
>> address from userspace if we use u64 as a pointer.
>>
>> The reason why we need this ioctl is to offer the none-privileged
>> end-user a possibility to get filesys info gathering.
>>
>> We use OCFS2_IOC_INFO to manipulate the new ioctl, userspace passes a
>> structure to kernel containing an array of request pointers and request
>> count, such as,
>>
>> * From userspace:
>>
>> struct ocfs2_info_blocksize brq = {
>> .ir_request = {
>> .ir_magic = OCFS2_INFO_MAGIC,
>> .ir_code = OCFS2_INFO_BLOCKSIZE,
>> ...
>> }
>>
>
> I think you've totally overshoot the target here. Just add a normal
> ioctls returning a structure with all interesting information without
> all that crap around it. If it needs to be revisited it's trivial to
> just add another ioctl containing more fields.
>
Hi Christoph,
I'm totally agreeing with Joel's idea, you see, we're going to add a
ioctl about ocfs2 INFO, INFO itself was not a separate 'blocksize' or
'clustersize' anyway.
The ocfs2_info is aiming at reteriving some info pieces as a whole,
what's more, above logic could be more flexible than separate ioctls one
by one.
and it's all up to user's demands, folks can even separate their
requirements by calling ocfs2_info more than once, by querying one info
each time, or they can also grab all info by one time if they wish so.
that's the INFO exactly mean, does it make sense?
Thanks and regards,
Tristan
next prev parent reply other threads:[~2010-02-06 13:42 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-05 9:59 [Ocfs2-devel] [PATCH 1/2] Ocfs2: Move ocfs2 ioctl definitions from ocfs2_fs.h to new added ocfs2_ioctl.h Tristan Ye
2010-02-05 9:59 ` [Ocfs2-devel] [PATCH 2/2] Ocfs2: Add new OCFS2_IOC_INFO ioctl for ocfs2 v6 Tristan Ye
2010-02-05 16:27 ` Christoph Hellwig
2010-02-05 19:26 ` Joel Becker
2010-02-05 23:30 ` Joel Becker
2010-02-06 13:42 ` tristan.ye [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-02-05 10:15 Tristan Ye
2010-02-08 9:21 [Ocfs2-devel] [PATCH 1/2] Ocfs2: Move ocfs2 ioctl definitions from ocfs2_fs.h to new added ocfs2_ioctl.h Tristan Ye
2010-02-08 9:21 ` [Ocfs2-devel] [PATCH 2/2] Ocfs2: Add new OCFS2_IOC_INFO ioctl for ocfs2 v6 Tristan Ye
2010-02-24 7:51 [Ocfs2-devel] [PATCH 1/2] Ocfs2: Move ocfs2 ioctl definitions from ocfs2_fs.h to new added ocfs2_ioctl.h Tiger Yang
2010-02-24 7:51 ` [Ocfs2-devel] [PATCH 2/2] Ocfs2: Add new OCFS2_IOC_INFO ioctl for ocfs2 v6 Tiger Yang
2010-03-02 5:59 [Ocfs2-devel] [PATCH 1/2] Ocfs2: Move ocfs2 ioctl definitions from ocfs2_fs.h to newly added ocfs2_ioctl.h Tristan Ye
2010-03-02 5:59 ` [Ocfs2-devel] [PATCH 2/2] Ocfs2: Add new OCFS2_IOC_INFO ioctl for ocfs2 v6 Tristan Ye
2010-04-14 2:56 [Ocfs2-devel] [PATCH 1/2] Ocfs2: Move ocfs2 ioctl definitions from ocfs2_fs.h to newly added ocfs2_ioctl.h Tristan Ye
2010-04-14 2:56 ` [Ocfs2-devel] [PATCH 2/2] Ocfs2: Add new OCFS2_IOC_INFO ioctl for ocfs2 v6 Tristan Ye
2010-04-16 21:50 ` Sunil Mushran
2010-04-16 22:26 ` Sunil Mushran
2010-04-17 0:11 ` Joel Becker
2010-04-17 1:03 ` Sunil Mushran
2010-04-19 2:22 ` tristan
2010-04-19 1:48 ` tristan
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=4B6D71B0.4070005@oracle.com \
--to=tristan.ye@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.