LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 01-07-2007, 07:49 AM   #1
Tortanick
Member
 
Registered: Jul 2006
Distribution: Debian Testing
Posts: 299

Rep: Reputation: 30
auto updateing symlinks?


Is it possible to create a symlink that will automatically repoint itself whenever the target file is moved?
 
Old 01-07-2007, 08:04 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
Do you want to make a link on the same disk? Use hard links then, it's what they are for. If it is on another disk, it's technically impossible to do correctly, because you can plug your HDD into another computer, mount only one of two partitions and move the file. In that case your link will have no chance to find its target. You are not going to do that, but as what you want cannot (in principle) be done in a entirely correct way, it is not done at all (kernel file system code has stricter requirements for theoretical possibility of correctness).
 
Old 01-07-2007, 08:09 AM   #3
Tortanick
Member
 
Registered: Jul 2006
Distribution: Debian Testing
Posts: 299

Original Poster
Rep: Reputation: 30
Didn't think about the unmounting point, makes sense not to have this feature.

Thanks for the awnser.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Updateing Slackware 10.2 RIB-EYE Slackware 4 10-25-2005 08:35 PM
updateing Kernal LoGic82 Fedora 1 05-27-2005 03:56 PM
updateing AGilley007 Slackware 7 07-09-2004 05:55 AM
updateing ports rafalek *BSD 2 12-02-2003 08:32 PM
updateing to 8.1 kylo8787 Slackware 1 04-16-2002 04:04 PM


All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration