Solved

What is a holey file?

Posted on 1997-10-12
6
798 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
Comment Utility
"holey" file ? are you sure you got that right ?

-Eric.
0
 
LVL 4

Author Comment

by:jlms
Comment Utility
I think so...
0
 
LVL 3

Expert Comment

by:EricKaplan
Comment Utility
Where did you get that info ? what OS ? ....
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 4

Accepted Solution

by:
rembo earned 50 total points
Comment Utility


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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now