Bug 163994 - sparse files not handled efficiently
Summary: sparse files not handled efficiently
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: star
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Vrabec
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-07-22 18:14 UTC by Neal Becker
Modified: 2009-01-25 13:01 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-06 12:13:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Neal Becker 2005-07-22 18:14:51 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.4; Linux) KHTML/3.4.1 (like Gecko)

Description of problem:
According to my reading of star manpage, -sparse only works efficiently on 
solaris. 
 
The following algorithm is used for cp, tar, rdist IIRC: 
 
#if POSIX 
if (st.blocksize*st.blocks < st.size): 
  file is sparse 

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.star -c -sparse 
2. 
3. 
   

Additional info:

Comment 1 Peter Vrabec 2005-09-06 11:54:18 UTC
I'm sorry, what u complain about?


Comment 2 Neal Becker 2005-09-06 11:57:11 UTC
Never mind. 

Comment 3 Jörg Schilling 2009-01-25 13:01:08 UTC
Even on Linux, star handles sparse files more efficiently than
GNU tar.

If you are interested on a correct and more efficient sparse file
support on Linux, I recommend you to implement the lseek SEEK_HOLE/SEEK_DATA
interface that Solaris introduced for star.


Note You need to log in before you can comment on or make changes to this bug.