Jan Engelhardt wrote: > On May 12 2007 07:46, Matt Mackall wrote: > >>> You should not assume alphabetical order. Filesystems may be free to >>> reorder things and return them (1) randomly like in a hash (2) by >>> creation time during readdir(). >>> >> There is no assumption. Mercurial explicitly visits files in >> alphabetical order for the above commands. >> > > But who says that > > for i in {a..z}; do ## {..} is a bash3 extension > touch $i; > done; > > actually makes readdir() return them in the same order? Nobody. But doing a readdir, sorting the results and visiting the files in that order does mean you'll visit them in alphabetical order. Hence "explicitly visits". J - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: 2.6.21-git10/11: files getting truncated on xfs? or maybe an nlink problem?
- From: David Chinner <[email protected]>
- Re: 2.6.21-git10/11: files getting truncated on xfs? or maybe an nlink problem?
- From: Jeremy Fitzhardinge <[email protected]>
- Re: 2.6.21-git10/11: files getting truncated on xfs? or maybe an nlink problem?
- From: David Chinner <[email protected]>
- Re: 2.6.21-git10/11: files getting truncated on xfs? or maybe an nlink problem?
- From: Jeremy Fitzhardinge <[email protected]>
- Re: 2.6.21-git10/11: files getting truncated on xfs? or maybe an nlink problem?
- From: David Chinner <[email protected]>
- Re: 2.6.21-git10/11: files getting truncated on xfs? or maybe an nlink problem?
- From: Jeremy Fitzhardinge <[email protected]>
- Re: 2.6.21-git10/11: files getting truncated on xfs? or maybe an nlink problem?
- From: David Chinner <[email protected]>
- Re: 2.6.21-git10/11: files getting truncated on xfs? or maybe an nlink problem?
- From: Matt Mackall <[email protected]>
- Re: 2.6.21-git10/11: files getting truncated on xfs? or maybe an nlink problem?
- From: Jan Engelhardt <[email protected]>
- Re: 2.6.21-git10/11: files getting truncated on xfs? or maybe an nlink problem?
- From: Matt Mackall <[email protected]>
- Re: 2.6.21-git10/11: files getting truncated on xfs? or maybe an nlink problem?
- From: Jan Engelhardt <[email protected]>
- Re: 2.6.21-git10/11: files getting truncated on xfs? or maybe an nlink problem?
- Prev by Date: [PATCH] m68k: implement __clear_user()
- Next by Date: Re: Linux 2.6.22-rc1
- Previous by thread: Re: 2.6.21-git10/11: files getting truncated on xfs? or maybe an nlink problem?
- Next by thread: Re: 2.6.21-git10/11: files getting truncated on xfs? or maybe an nlink problem?
- Index(es):