* [uml-devel] A few comments on hostfs interface
@ 2004-04-21 8:29 Paul Wagland
2004-04-21 15:15 ` [uml-devel] " Jeff Dike
0 siblings, 1 reply; 2+ messages in thread
From: Paul Wagland @ 2004-04-21 8:29 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: Piotr Neuman, Jeff Dike
[-- Attachment #1: Type: text/plain, Size: 898 bytes --]
Hi all,
These comments are based on the development code as provided by sikkh,
as such not everything might be relevant, but I believe that the
primary code changed by sikkh is in the metadata interface.
Anyway, here goes:
hostfs.h:
struct externfs_file_ops:
Almost all of the functions have the naming form verb_noun, except
for file_create(). I would suggest to reverse this for the sake of
consistency.
Most functions have "long names" that is open_file, link_file,
access_file, etc. The exceptions to this are mkdir(), rmdir(), mknod(),
readlink(), and statfs(). This cannot be done to "keep standard
semantics" since open_dir() is not in it's standard form either. I
would suggest to rename all of the "short form" functions into the
standardised form.
Jeff, if you agree with the above, let me know, and you will receive a
patch for it later today.
Cheers,
Paul
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 186 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [uml-devel] Re: A few comments on hostfs interface
2004-04-21 8:29 [uml-devel] A few comments on hostfs interface Paul Wagland
@ 2004-04-21 15:15 ` Jeff Dike
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Dike @ 2004-04-21 15:15 UTC (permalink / raw)
To: Paul Wagland; +Cc: user-mode-linux-devel, Piotr Neuman
On Wed, Apr 21, 2004 at 10:29:13AM +0200, Paul Wagland wrote:
> struct externfs_file_ops:
> Almost all of the functions have the naming form verb_noun, except
> for file_create(). I would suggest to reverse this for the sake of
> consistency.
Yup. I'm schizophrenic on verb-noun vs noun-verb, sometimes within
the same interface, as you've noticed.
>
> Most functions have "long names" that is open_file, link_file,
> access_file, etc. The exceptions to this are mkdir(), rmdir(), mknod(),
> readlink(), and statfs(). This cannot be done to "keep standard
> semantics" since open_dir() is not in it's standard form either. I
> would suggest to rename all of the "short form" functions into the
> standardised form.
Yup.
> Jeff, if you agree with the above, let me know, and you will receive a
> patch for it later today.
OK, can you make it on top of sikkh's patch?
Jeff
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-21 14:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-21 8:29 [uml-devel] A few comments on hostfs interface Paul Wagland
2004-04-21 15:15 ` [uml-devel] " Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox