[Kget] [Bug 195552] New: kget should pre-allocate the file for the size of the file

Amit Shah shahamit at gmail.com
Sun Jun 7 13:22:28 CEST 2009


https://bugs.kde.org/show_bug.cgi?id=195552

           Summary: kget should pre-allocate the file for the size of the
                    file
           Product: kget
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: kget at kde.org
        ReportedBy: shahamit at gmail.com


Version:           2.2.3 (using 4.2.3 (KDE 4.2.3), 4.2.3-2.fc10 Fedora)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.27.24-170.2.68.fc10.x86_64

kget, like ktorrent, should pre-allocate a file using the posix_fallocate()
call so that the fragmentation of a file is kept to a minimum. Newer file
systems like ext4, btrfs, xfs, etc., support the fallocate() syscall and hence
this is extremely fast.

Some older file systems aren't too slow for preallocation as well:

http://www.amitshah.net/2009/04/re-comparing-file-systems.html

Two ways of doing this:
1. More user-friendly: detect if fallocate() support is available and use it
2. Offer the user an option to preallocate the file so that the file isn't
fragmented.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kget mailing list