Bug 163994

Summary: sparse files not handled efficiently
Product: [Fedora] Fedora Reporter: Neal Becker <ndbecker2>
Component: starAssignee: Peter Vrabec <pvrabec>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: schily
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-06 12:13:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.