• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 884
  • Last Modified:

What is a holey file?

What is it? Why do they exist? Why I can't handle them as other files?
0
jlms
Asked:
jlms
  • 3
  • 2
1 Solution
 
EricKaplanCommented:
"holey" file ? are you sure you got that right ?

-Eric.
0
 
jlmsAuthor Commented:
I think so...
0
 
EricKaplanCommented:
Where did you get that info ? what OS ? ....
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
remboCommented:


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
 
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now