gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] Feature suggestion


From: Krishna Srinivas
Subject: Re: [Gluster-devel] Feature suggestion
Date: Mon, 23 Mar 2009 18:07:23 -0700

Brent,
True, it is a nice idea as size of the directory inode is not used
anywhere (is it used?) We will keep this in mind.
Krishna

On Fri, Mar 20, 2009 at 7:31 AM, Brent A Nelson <address@hidden> wrote:
> Sage Weil with the Ceph filesystem came up with a clever idea, and it might
> be a tempting optional feature on GlusterFS.  He calls it rbytes accounting,
> if I recall correctly.
>
> Basically, the idea is to just keep a running tally of how much data is
> stored in each directory.  I believe he did this originally for quota
> support, but the neat part is that he decided to make the collected
> statistics available simply through ls.  If you do an ls -l, the size
> associated with any directory listed is the current estimated amount of data
> contained in that directory (and any subdirectories within), rather than the
> size of the directory inode itself (and who really cares about the size of
> the directory inode?).  Neat!
>
> In filesystems where du can take a very long time to run, this would be
> rather convenient.  It's possible that it might break some applications, so
> it certainly should be optional, but such applications are likely quite
> rare.
>
> Perhaps this would fit in nicely with a per-directory quota translator, as
> such a translator might store usage data by directory in an extended
> attribute, anyway?
>
> Thanks,
>
> Brent
>
>
> _______________________________________________
> Gluster-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/gluster-devel
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]