Bug 59234 - would be nice to see the actual size of file -- a different number for sparse files
Summary: would be nice to see the actual size of file -- a different number for sparse...
Status: REPORTED
Alias: None
Product: konqueror
Classification: Applications
Component: general (other bugs)
Version First Reported In: 3.1.1
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: Konqueror Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-02 00:59 UTC by mi+kde
Modified: 2024-07-09 13:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mi+kde 2003-06-02 00:59:06 UTC
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
Comment 1 groot 2003-12-31 12:30:25 UTC
Not FreeBSD specific.
Comment 2 groot 2003-12-31 12:32:41 UTC
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.
Comment 3 mi+kde 2003-12-31 21:56:34 UTC
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.
Comment 4 FiNeX 2009-09-13 20:37:15 UTC
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.
Comment 5 mi+kde 2009-09-14 04:33:55 UTC
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...