bug#6138: mv while maintaining relative symbolic links

2010-06-07 Thread Bob Proulx
Peng Yu wrote: Bob Proulx wrote: To do what you are asking would require that every move operation consult the contents of every symlink on the filesystem and adjust those other symlinks. Worse this is not only on the current filesystem but also on other filesystems. ... I agree with

bug#6138: mv while maintaining relative symbolic links

2010-06-07 Thread Bob Proulx
Peng Yu wrote: Bob Proulx wrote: Is there any new information on this issue? Have you made any progress on your own solution? No. I don't find any tool either. I think it is unlikely (I haven't read any enthusiasm for it from the group) for adding this type of functionality to mv. I

bug#6138: mv while maintaining relative symbolic links

2010-05-10 Thread Voelker, Bernhard
Peng Yu wrote: I agree with you that this is may not be possible for whole file system. But under the assumptions that symbolic links and their targets are always in a number of directories (user configurable) on the same file system, then it is doable. This is practically what I need. you

bug#6138: mv while maintaining relative symbolic links

2010-05-10 Thread Peng Yu
On Mon, May 10, 2010 at 4:37 AM, Voelker, Bernhard bernhard.voel...@siemens-enterprise.com wrote: Peng Yu wrote: I agree with you that this is may not be possible for whole file system. But under the assumptions that symbolic links and their targets are always in a number of directories (user

bug#6138: mv while maintaining relative symbolic links

2010-05-10 Thread Voelker, Bernhard
Peng Yu wrote: On Mon, May 10, 2010 at 4:37 AM, Voelker, Bernhard wrote: you need a reference to the actual inode, don't you? So what a about using hardlinks? Harlinks do not work across filesystems. I think that it is better stick with symbolic links. you are right, of course. You'll have

bug#6138: mv while maintaining relative symbolic links

2010-05-08 Thread Peng Yu
On Fri, May 7, 2010 at 5:03 PM, Bob Proulx b...@proulx.com wrote: severity 6138 wishlist thanks Peng Yu wrote: I'm wondering if there is any tool that can do almost exact the same thing as mv, but it can maintain symbolic links. mv doens't maintain relative symbolic links. For example, I

bug#6138: mv while maintaining relative symbolic links

2010-05-07 Thread Peng Yu
I'm wondering if there is any tool that can do almost exact the same thing as mv, but it can maintain symbolic links. mv doens't maintain relative symbolic links. For example, I have file /tmp/A/file1.txt and a symbolic link /tmp/file1.txt that point to A/file.txt (by the relative path). If I mv

bug#6138: mv while maintaining relative symbolic links

2010-05-07 Thread Bob Proulx
severity 6138 wishlist thanks Peng Yu wrote: I'm wondering if there is any tool that can do almost exact the same thing as mv, but it can maintain symbolic links. mv doens't maintain relative symbolic links. For example, I have file /tmp/A/file1.txt and a symbolic link /tmp/file1.txt that