Version: 3.1.1 (using KDE 3.1.1) Compiler: gcc version 3.2.2 [FreeBSD] 20030205 (release) OS: FreeBSD (i386) release 5.1-BETA In case of "sparse" files -- such as those created by Berkeley DB, or gdbm, or gtk-gnutella Konqueror only reports the "official" size of a file. Some way of seeing the amount of the disk space the file actually occupies, would be very welcome. Thanks! -mi
Not FreeBSD specific.
I should add: mi, how would you do that in regular code? ie. given an fd or path name, can you find this out in a straightforward way? You, of all folks, should have an implementation idea - then we can stick it into KDE all the more easily.
See stat(2) (for path) or fstat(2) for file descriptor. The field of interest is: st_blocks The actual number of blocks allocated for the file in 512-byte units. As short symbolic links are stored in the inode, this number may be zero.
All reports about file management mode reported against KDE 3 (konqueror) has been closed: konqueror in KDE 3 is no more developed and mantained. All bugs and wishes which could be interesting for Dolphin in KDE 4 (the new KDE file manager) has been collected into a specific list. Please try the new file manager before request new features and report bugs. Before submitting new reports check carefully the already opened KDE/Dolphin reports in order not to add duplicates. Many thanks.
Of course, Dolphin has the exact same problem! Why wouldn't it?.. When showing the "detailed" listing of a directory, only the file's "size" is displayed (st_size field returned by stat(2)). Other occasionally useful details returned by stat(2) -- such as st_blocks, st_blksize -- are neither shown by default, nor available as options under View->Additional Information. Please, reclassify as a Dolphin's missing feature...