Re: [Tux3] The long and short of extended attributes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Daniel Phillips
Date: Monday, September 8, 2008 - 12:40 pm

On Sunday 07 September 2008 17:43, Shapor Naghibzadeh wrote:

I completely agree with you on the thrust of this.  This is purely
a compression optimization, in other words, it had better cause no
change to semantics.  The inheritance can be per inode table block,
that is, each inode table block has a default user/group/mode in its
header, and if an inode exactly matches that, it is not represented,
otherwise the attribute appears in the inode.  A slight variation on
that idea is to say that the user/group/mode attribute of each inode
applies to the next one, if the next inode does not have one of its
own.  Which requires scanning all inodes in a table block to find out
what the user/group/mode attribute should be, so I think I prefer the
one per table block approach.  This is 12 bytes, vs savings of up to
64 * 12 = 768 bytes/inode, which is a big deal.

So yes, I think we should do something very much like this.  Later of
course, say after atomic commit and versioning are working, but with
fuse being a reality there is no need to wait for the kernel port.


Yup.

Regards,

Daniel

_______________________________________________
Tux3 mailing list
Tux3@tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Tux3] The long and short of extended attributes, Daniel Phillips, (Sun Sep 7, 4:13 pm)
Re: [Tux3] The long and short of extended attributes, Shapor Naghibzadeh, (Sun Sep 7, 5:43 pm)
Re: [Tux3] The long and short of extended attributes, Daniel Phillips, (Mon Sep 8, 12:40 pm)
Re: [Tux3] The long and short of extended attributes, Kent Overstreet, (Tue Sep 9, 3:40 am)
Re: [Tux3] The long and short of extended attributes, Kent Overstreet, (Tue Sep 9, 3:46 am)
Re: [Tux3] The long and short of extended attributes, Daniel Phillips, (Tue Sep 9, 4:30 am)
Re: [Tux3] The long and short of extended attributes, Daniel Phillips, (Tue Sep 9, 4:40 am)
Re: [Tux3] The long and short of extended attributes, Kent Overstreet, (Tue Sep 9, 5:19 am)
Re: [Tux3] The long and short of extended attributes, Kent Overstreet, (Tue Sep 9, 5:48 am)
Re: [Tux3] The long and short of extended attributes, Daniel Phillips, (Tue Sep 9, 10:14 am)
[Tux3] More xattr design details, Daniel Phillips, (Wed Sep 10, 3:52 pm)
[Tux3] Patch: Should update btree cursor path in insert_node, Daniel Phillips, (Thu Dec 25, 1:11 am)