… | |
… | |
282 | |
282 | |
283 | Then entires will be sorted into likely directories (everything without a |
283 | Then entires will be sorted into likely directories (everything without a |
284 | non-initial dot) and likely non-directories (everything else). Then every |
284 | non-initial dot) and likely non-directories (everything else). Then every |
285 | entry + C</.> will be C<stat>'ed, likely directories first. This is often |
285 | entry + C</.> will be C<stat>'ed, likely directories first. This is often |
286 | faster because filesystems might detect the type of the entry without |
286 | faster because filesystems might detect the type of the entry without |
287 | reading the inode data (e.g. ext2s filetype feature). If that succeeds, |
287 | reading the inode data (e.g. ext2fs filetype feature). If that succeeds, |
288 | it assumes that the entry is a directory or a symlink to directory (which |
288 | it assumes that the entry is a directory or a symlink to directory (which |
289 | will be checked seperately). |
289 | will be checked seperately). |
290 | |
290 | |
291 | If the known number of directories has been reached, the rest of the |
291 | If the known number of directories has been reached, the rest of the |
292 | entries is assumed to be non-directories. |
292 | entries is assumed to be non-directories. |