> That's indeed a reason, showing that ls(1) is more on the abstract level > (whatever the implementation, ls(1) shows ownership and permissions > ---that can have no real relationship in the actual store) while du(1) > tries to show effective story and needs to know more about effective > storage. > > And it can work only with some filesystems. (Think ftpfs etc. and think > sharing of blocks)
du works the same with all file servers. i think the problem here is applying semantics to the output. du performance a specified operation (adding up the d->size in the stat output.) as is plan 9 tradition, what that /means/ is up to the file server you're talking to. - erik