We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

What is a holey file?

jlms
jlms asked
on
Medium Priority
978 Views
Last Modified: 2011-09-20
What is it? Why do they exist? Why I can't handle them as other files?
Comment
Watch Question

"holey" file ? are you sure you got that right ?

-Eric.

Author

Commented:
I think so...
Where did you get that info ? what OS ? ....
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


Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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?

Author

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?
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.