On Wed, 2006-11-29 at 01:48 -0800, Andreas Dilger wrote:The other thing is that a readdirplus at least for some file systems can be implemented much more efficiently than readdir + stat because the directory entry itself contains a lot of extra information. To take NTFS as an example I know something about, the directory entry caches the a/c/m time as well as the data file size (needed for "ls") and the allocated on disk file size (needed for "du") as well as the inode number corresponding to the name, the flags of the inode (read-only, hidden, system, whether it is a file or directory, etc) and some other tidbits so readdirplus on NTFS can simply return wanted information without ever having to do a lookup() on the file name to obtain the inode to then use that in the stat() system call... The potential decrease in work needed is tremendous in this case... Imagine "ls -li" running with a single readdirplus() syscall and that is all that happens on the kernel side, too. Not a single file name needs to be looked up and not a single inode needs to be loaded. I don't think anyone can deny that that would be a massive speedup of "ls -li" for file systems whose directory entries store extra information to traditional unix file systems... Best regards, Anton -- Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @) Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK Linux NTFS maintainer, http://www.linux-ntfs.org/ - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Linus Torvalds | Linux 2.6.27-rc8 |
| Greg KH | [patch 00/71] 2.6.26-stable review |
| Dmitry Torokhov | 2.6.27-rc8+ - first impressions |
| Rafael J. Wysocki | [Bug #11215] INFO: possible recursive locking detected ps2 command |
git: | |
| Christian MICHON | Re: MinGW port - initial work uploaded |
| Luiz Fernando N. Capitulino | Libification project (SoC) |
| Linus Torvalds | People unaware of the importance of "git gc"? |
| Jakub Narebski | [RFC] Git User's Survey 2008 |
| Richard Stallman | Real men don't attack straw men |
| Tony Abernethy | Re: What is our ultimate goal?? |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| James Hartley | scp batch mode? |
| Ingo Molnar | Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets |
| Timo Teräs | Re: xfrm_state locking regression... |
| Ingo Molnar | Re: [bug] stuck localhost TCP connections, v2.6.26-rc3+ |
| Natalie Protasevich | [BUG] New Kernel Bugs |
