Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Create Sparse Copies of files

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
_cih_



Joined: Wed Sep 13, 2006 5:50 pm
Posts: 10

PostPosted: Tue Oct 10, 2006 10:14 pm    Post subject: Create Sparse Copies of files Reply with quote

Hello,

I have a problem doing my assignment, I am not trying to ask someone to solve it for myself, but if Someone could give me some links or hints , which will help me solve it, I would be very thankful.

Problem :

Write a C program that makes a sparse copy of a file : file and copy must compare equal, but if the file contains large blocks of NUL bytes, then the sparse copy must take much less space than an ordinary copy.


Last edited by _cih_ on Wed Oct 11, 2006 2:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8464
Location: Warrington, UK

PostPosted: Tue Oct 10, 2006 11:14 pm    Post subject: RE: Create Sparse Copies of files Reply with quote

Code:
cp --sparse...

_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast