What is a holey file?

What is it? Why do they exist? Why I can't handle them as other files?
LVL 4
jlmsAsked:
Who is Participating?
 
remboConnect With a Mentor Commented:


When you talk about holey files, I'm assuming
that you're talking about files which were
creating with empty checks via lseek.  

These are stored in the filesystem using
only header info, not real disk blocks.  However,
if you try to put this on to a tape, especially
with dd or something like that, it will try to
write the actual blocks.  

For example, you could lseek forward 2GB in a file
and then write 1 character.  Your file size is then
huge, but it actually only takes up one disk block
(this is in UFS, not any old SVR4 system).  However,
older filesystems can figure this out.

Anyway, the deal is you need to be careful with things
that might try to map these headers to real data.

So, the deal is, try not to create holey files :)
but if you do, just know what you're doing with
them and how you move them.  Try to use tar and
modern, ufs or vxfs filesystems.  

If there's a specific application you're wondering
about, let me know.  I'd be happy to help.

-Tony


0
 
EricKaplanCommented:
"holey" file ? are you sure you got that right ?

-Eric.
0
 
jlmsAuthor Commented:
I think so...
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
EricKaplanCommented:
Where did you get that info ? what OS ? ....
0
 
jlmsAuthor Commented:
I think I understand, and no, I don't have any application in particular in mind.

One last thing, how can I recognize one of this files?
0
 
jlmsAuthor Commented:
I think I understand, and no, I don't have any application in particular in mind.

One last thing, how can I recognize one of this files?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.