Re: you are in an fs with millions of small files

From: Peter Jeremy (PeterJeremy_at_optushome.com.au)
Date: 06/08/05

  • Next message: Jens Schweikhardt: "Re: Timekeeping hosed by factor 3, high lapic[01] interrupt rates"
    Date: Thu, 9 Jun 2005 05:05:58 +1000
    To: Dag-Erling Smørgrav <des@des.no>
    
    

    On Wed, 2005-Jun-08 18:38:59 +0200, Dag-Erling Smørgrav wrote:
    >des@des.no (Dag-Erling Smørgrav) writes:
    >> Giorgos Keramidas <keramida@freebsd.org> writes:
    >> > This would require updates/changes to all the users of fts.h too?
    >> No. They access the list through fts_next().
    >
    >ARRRGH! They're supposed to, but of course some don't: ls(1), ctm(1)
    >and mtree(8).

    Why 'ARRRGH!'? fts(3) documents the use of fts_children() to allow
    the list to be traversed using fts_link. Converting from a tree to a
    linked list is not rocket-science - fts_next() has to do an ordered
    traversal. At the most simplistic level, all you need to do is
    iterate fts_next() and turn the output into a list in fts_link.

    -- 
    Peter Jeremy
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: Jens Schweikhardt: "Re: Timekeeping hosed by factor 3, high lapic[01] interrupt rates"

    Relevant Pages

    • Re: Crypto test removal request from Theo de Raadt
      ... It has now been deleted from the NetBSD tree as well. ... > Please delete it from the FreeBSD tree as well. ... > Content-Type: text/plain; ... > To unsubscribe, ...
      (freebsd-current)
    • RE: [openib-general] [RFC] Move InfiniBand .h files
      ... > tree that might want to use IB support. ... > kernel tree, since one would have to link both drivers/infiniband ... > problem goes away if/when OpenIB shifts over to a new source code ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: HELP! cant become root
      ... directory tree. ... They don't walk up the tree ... it would be way too dangerous to have any utility work that way. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: Maintain list of attached event handlers (.Net 1.1)
      ... > The Form is an observer of some objects working in the background ... > straighter to detach the event handlers when closing the Form. ... The tree is only in some data structure, ... should unsubscribe itself from any events to which it's subscribed. ...
      (microsoft.public.dotnet.framework)
    • Re: Maintain list of attached event handlers (.Net 1.1)
      ... it doesn't have to observe the events anymore. ... Of course, I could always query "IsHandleCreated" in each event handler, but I think it's straighter to detach the event handlers when closing the Form. ... The tree is only in some data structure, and form subscribes to an event on each and every object within the tree. ... And yes, I agree that if the form is going away, it should unsubscribe itself from any events to which it's subscribed. ...
      (microsoft.public.dotnet.framework)