LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 06: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, 07:04 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
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, 07: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



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 07:35 PM
updateing Kernal LoGic82 Fedora 1 05-27-2005 02:56 PM
updateing AGilley007 Slackware 7 07-09-2004 04:55 AM
updateing ports rafalek *BSD 2 12-02-2003 07:32 PM
updateing to 8.1 kylo8787 Slackware 1 04-16-2002 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:45 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
Open Source Consulting | Domain Registration