linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: [Ext2-devel] [RFC] [PATCH 3/4] Add extended attributes to ext 2/3
@ 2002-10-09  8:53 Luka Renko
  2002-10-09 13:16 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Luka Renko @ 2002-10-09  8:53 UTC (permalink / raw)
  To: Christoph Hellwig, Andreas Gruenbacher; +Cc: linux-kernel, ext2-devel

> > With the registration API modules doing HSM/LSM/... can 
> just register 
> > handlers
> > without having to modify the file system code. Otherwise we 
> would have to 
> > hand code additional hooks for independently loadable modules.
> 
> a) if the HSM/whatever is so standalone that it should patch ext2 code
>    it is truely generic and thus above the filesystem.
> b) you don;t even export the register/unregister to modules, 
> not mention
>    other ext2/ext3 core functionality that it would need.
> c) looks at the 'would'  there is no such code currently and 
> if it gets
>    a real consern it still could be added.  Don't bloat the kernel
>    more than you really need to..

Actually we are currently developing HSM application that stacks on top of
standard file system (ext3 and XFS today) and we are using EA to store HSM
specific information with each inode. However, we are not using registration
API, but rather store this in user EA (even if we don't like some
limitations of user EA), because registration API is not exported and
registration API is per-FS and not generic. This would mean that we would
need to have handlers defined for each supported filesystem (ext3 and XFS
today, reiserfs and JFS in near future). As we use user EA, we just call VFS
EA operations of the bottom FS (ext3 or XFS or any other FS that supports
EA).

I agree with your point that this interfaces needs to be exported, but I
would also prefer if they would be generic in terms of being able to
register the same EA handler for each FS supporting EAs (an allowing
extensions/registrations).
I think that we could also then have only single ACL code for both ext2 and
ext3 - currently ACL patch adds similar (same?) code to both ext2 and ext3
and this code could be shared for sure.

Regards,
Luka

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

* Re: [Ext2-devel] [RFC] [PATCH 3/4] Add extended attributes to ext 2/3
  2002-10-09  8:53 [Ext2-devel] [RFC] [PATCH 3/4] Add extended attributes to ext 2/3 Luka Renko
@ 2002-10-09 13:16 ` Christoph Hellwig
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2002-10-09 13:16 UTC (permalink / raw)
  To: Luka Renko; +Cc: Andreas Gruenbacher, linux-kernel, ext2-devel

On Wed, Oct 09, 2002 at 10:53:47AM +0200, Luka Renko wrote:
> Actually we are currently developing HSM application that stacks on top of
> standard file system (ext3 and XFS today) and we are using EA to store HSM
> specific information with each inode. However, we are not using registration
> API, but rather store this in user EA (even if we don't like some
> limitations of user EA), because registration API is not exported and
> registration API is per-FS and not generic. This would mean that we would
> need to have handlers defined for each supported filesystem (ext3 and XFS
> today, reiserfs and JFS in near future). As we use user EA, we just call VFS
> EA operations of the bottom FS (ext3 or XFS or any other FS that supports
> EA).

Yupp, that's exactly what I meant.

> I think that we could also then have only single ACL code for both ext2 and
> ext3 - currently ACL patch adds similar (same?) code to both ext2 and ext3
> and this code could be shared for sure.

And JFS and reiserfs.  Yes, this code should be in a library, but e.g.
XFS (different ondisk format) or NFSv4/NTFS/whatever need very different
ACL rountines.  You can't easily plug the handler into different filesystems
due to very different implementations below the VFS level.

BTW, do you have a pointer to your DSM system?  I'l like to look at something
less broken them dmapi..

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

end of thread, other threads:[~2002-10-09 13:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-09  8:53 [Ext2-devel] [RFC] [PATCH 3/4] Add extended attributes to ext 2/3 Luka Renko
2002-10-09 13:16 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).