From: Dave Kleikamp <shaggy@austin.ibm.com>
To: Alexander Viro <viro@math.psu.edu>
Cc: Linus Torvalds <torvalds@transmeta.com>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
Andreas Dilger <adilger@turbolinux.com>,
"Eric W. Biederman" <ebiederm@xmission.com>
Subject: Re: [RFC] sane access to per-fs metadata (was Re: [PATCH]Documentation/ioctl-number.txt)
Date: Fri, 23 Mar 2001 10:15:33 -0600 [thread overview]
Message-ID: <3ABB76A5.2031C1D4@austin.ibm.com> (raw)
In-Reply-To: <Pine.GSO.4.21.0103221720250.5619-100000@weyl.math.psu.edu>
Al,
I didn't know that creating file system ioctl's was such a hot topic.
Since the functions I want to implement are for a very specific purpose
(I don't expect anything except the JFS utilities to invoke them), I
would expect an ioctl to be an appropriate vehicle.
If not ioctl's, why not procfs? Your proposal is that each filesystem
implements its own mini-procfs. What's the advantage of that?
My intentions so far are to use ioctl's for specific operations required
by the JFS utilities, and procfs for debugging output, tuning, and
anything else that make sense.
Alexander Viro wrote:
> That may look like an overkill, however
> * You can get rid of any need to register ioctls, etc.
This is a one-time thing
> * You can add debugging/whatever at any moment with no need to
> update any utilities - everything is available from plain shell
We can do this with procfs right now.
> * You can conveniently view whatever metadata you want - no need to
> shove everything into ioctls on one object.
Again, why re-invent procfs? We could put this under
/proc/fs/jfs/metadata.
> * You can use normal permissions control - just set appropriate
> permission bits for objects on jfsmeta
>
> IOW, you can get normal filesystem view (meaning that you have all usual
> UNIX toolkit available) for per-fs control stuff. And keep the ability to
> do proper locking - it's the same driver that handles the main fs and you
> have access to superblock. No need to change the API - everything is already
> there...
I'm not sure how a utility would make atomic changes to several pieces
of metadata. The underlying fs code would protect the integrity of
every metadata "file", but changes to more than one of these "files"
would not be done as a group without some additional locking that would
have to be coordinated between the utility and the fs. This kind of
thing could be handled by writing some special command to a
"command-processor" type file, but why is this better than an ioctl?
--
David Kleikamp
IBM Linux Technology Center
next prev parent reply other threads:[~2001-03-23 16:18 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-22 21:20 [PATCH] Documentation/ioctl-number.txt Dave Kleikamp
2001-03-22 21:50 ` Alexander Viro
2001-03-22 22:06 ` Dave Kleikamp
2001-03-22 23:07 ` [RFC] sane access to per-fs metadata (was Re: [PATCH] Documentation/ioctl-number.txt) Alexander Viro
2001-03-23 6:00 ` Andreas Dilger
2001-03-23 12:06 ` Alexander Viro
2001-03-23 14:45 ` Eric W. Biederman
2001-03-23 16:15 ` Dave Kleikamp [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-03-23 16:56 Bryan Henderson
2001-03-23 17:16 ` Matthew Wilcox
2001-03-23 18:28 ` Alexander Viro
2001-03-23 17:35 ` Pjotr Kourzanoff
2001-04-01 9:01 ` Chip Salzenberg
2001-04-01 12:50 ` Keith Owens
2001-04-02 19:49 ` Chip Salzenberg
2001-04-10 7:51 ` Tommi Virtanen
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=3ABB76A5.2031C1D4@austin.ibm.com \
--to=shaggy@austin.ibm.com \
--cc=adilger@turbolinux.com \
--cc=ebiederm@xmission.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
--cc=viro@math.psu.edu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox