From: David Howells <dhowells@redhat.com>
To: Phillip Lougher <phillip@lougher.demon.co.uk>
Cc: dhowells@redhat.com, hch@infradead.org, viro@ZenIV.linux.org.uk,
linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] Update the exportfs documentation and comments and fix some exportfs issues
Date: Wed, 03 Dec 2008 10:54:50 +0000 [thread overview]
Message-ID: <29007.1228301690@redhat.com> (raw)
In-Reply-To: <49364304.7000501@lougher.demon.co.uk>
Phillip Lougher <phillip@lougher.demon.co.uk> wrote:
> You define these in the filesystem c files themselves as #defines. UDF and
> BTRFS place theirs in the enum fid_type definition itself (in
> linux/exportfs.h). Is there any reason why you didn't do this?
I don't know that we want to stick loads of filesystem-specific stuff into a
general header file. I believe we used to do that for struct inode (IIRC
there used to be a large union with filesystem-specific members).
> > int type = FILEID_INO32_GEN;
>
> ^^^^
>
> this should be changed to enum fid_type
I missed that. Updated.
> > +#define FUSE_FILEID ((enum fid_type) 0x81)
> > +#define FUSE_FILEID_PARENT ((enum fid_type) 0x82)
>
> Move to enum fid_type in linux/exportfs.h?
As mentioned above, do we really want to do that?
> > +#define ISOFS_FILEID ((enum fid_type) 1)
> > +#define ISOFS_FILEID_PARENT ((enum fid_type) 2)
> > +
>
> Move to enum fid_type in linux/exportfs.h?
>
> Type 1 and 2 are also used by the generic fid_types FILEID_INO32_GEN and
> FILEID_INO32_GEN_PARENT, but (obviously) their formats are different.
I know. As far as I know, there's no restriction on them reusing types 1 and
2, just an advisory note where these collide with other export types. Perhaps
Al or Christoph would care to comment on this.
Also, I don't know that changing these types would necessarily be a good
idea. wireshark, for example, could multiplex the types by the length as the
standard types are lengths 2 and 4, and ISOFS types are 3 and 5.
David
next prev parent reply other threads:[~2008-12-03 10:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-02 21:02 [PATCH] Update the exportfs documentation and comments and fix some exportfs issues David Howells
2008-12-03 8:27 ` Phillip Lougher
2008-12-03 10:54 ` David Howells [this message]
2008-12-04 4:50 ` Phillip Lougher
2008-12-03 12:50 ` Christoph Hellwig
2008-12-03 12:48 ` Christoph Hellwig
2008-12-03 13:14 ` David Howells
2008-12-03 13:47 ` Jörn Engel
2008-12-03 17:21 ` David Howells
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=29007.1228301690@redhat.com \
--to=dhowells@redhat.com \
--cc=hch@infradead.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=phillip@lougher.demon.co.uk \
--cc=viro@ZenIV.linux.org.uk \
/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.