|
|
|
|
|
|
| Author |
Message |
Keith Thompson *nix forums Guru
Joined: 28 Feb 2005
Posts: 5173
|
Posted: Wed Jul 19, 2006 10:23 pm Post subject:
Re: link to part of a file
|
|
|
Weiguang Shi <wgshi@nestow.cs.ualberta.ca> writes:
| Quote: | This may not be the right place but you are knowledgeable people...
Can I create a link that contains only part of a file?
|
A link doesn't "contain" a file; it refers to a file. There's no way
for a either a hard link or a soft (symbolic) link to refer to only
part of a file.
A symlink is implemented as a small file containing the name of the
target file, with a flag set (in the inode, I think) so the OS knows
it's a symlink and treats it, in most circumstances, as the file it
refers to.
You can certainly create your own type of file that contains, say, a
file name, starting offset, and size. Your own software can treat
these files as if they were symlinks to parts of files. This won't
affect anything that doesn't recognize this special kind of file.
This may or may not be sufficient for your purposes.
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this. |
|
| Back to top |
|
 |
Michael Vilain *nix forums Guru
Joined: 21 Feb 2005
Posts: 565
|
Posted: Wed Jul 19, 2006 12:36 am Post subject:
Re: link to part of a file
|
|
|
In article <slrnebqp47.rgg.wgshi@nestow.cs.ualberta.ca>,
Weiguang Shi <wgshi@nestow.cs.ualberta.ca> wrote:
| Quote: | Hi,
This may not be the right place but you are knowledgeable people...
Can I create a link that contains only part of a file?
Thanks.
Wei
|
If you mean a hard or soft link, the answer is no. Google "hard link"
and "soft link" for more info.
--
DeeDee, don't press that button! DeeDee! NO! Dee... |
|
| Back to top |
|
 |
Weiguang Shi *nix forums beginner
Joined: 25 Mar 2006
Posts: 16
|
Posted: Tue Jul 18, 2006 10:45 pm Post subject:
link to part of a file
|
|
|
Hi,
This may not be the right place but you are knowledgeable people...
Can I create a link that contains only part of a file?
Thanks.
Wei |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Fri Nov 21, 2008 5:54 pm | All times are GMT
|
|
Loan | Mortgage Calculator | Mortgage Calculator | Home Loan | Singapore Shopping Guide
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|