Solved

What is a holey file?

Posted on 1997-10-12
6
821 Views
Last Modified: 2011-09-20
What is it? Why do they exist? Why I can't handle them as other files?
0
Comment
Question by:jlms
  • 3
  • 2
6 Comments
 
LVL 3

Expert Comment

by:EricKaplan
ID: 2007394
"holey" file ? are you sure you got that right ?

-Eric.
0
 
LVL 4

Author Comment

by:jlms
ID: 2007395
I think so...
0
 
LVL 3

Expert Comment

by:EricKaplan
ID: 2007396
Where did you get that info ? what OS ? ....
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 4

Accepted Solution

by:
rembo earned 50 total points
ID: 2007397


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

Author Comment

by:jlms
ID: 2007398
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
 
LVL 4

Author Comment

by:jlms
ID: 2007399
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
cant install flashplugins for firefox in freebsd 8 9 46
nodeip 9 80
LastLogonTimeStamp Attribute 7 48
How to clone solaris 10 machine 33 133
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question