tech-kern archive

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

Re: Max. number of subdirectories dump



On 2013-08-18 17:33, Manuel Wiesinger wrote:
On 08/18/13 15:59, Johnny Billquist wrote:
 > Not sure I understand the question. Are you suggesting that you don't
 >  need to scan through all the contents of a directory to find the
 > subdirectories?
No, I'm in a step where I just search for subdirectories, other types do
not matter here. What I have overlooked, is that dump looks for any
entry type. This is why it iterates over the triple indirect blocks. I
just look for directory entries (at lest in that step).

I understand now, that I have to iterate through all indirect block levels.

There is nothing in the directory entry that even tells if the entry is a directory or just a plain file, unless I remember wrong. And they are not sorted so that all directories comes first...

So, you cannot do anything else than check everything you find.

        Johnny

--
Johnny Billquist                  || "I'm on a bus
                                  ||  on a psychedelic trip
email: bqt%softjar.se@localhost             ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol


Home | Main Index | Thread Index | Old Index