[jboss-user] [JBoss Microcontainer Development] New message: "Re: VFS3 and symlinks"

John Bailey do-not-reply at jboss.com
Thu Feb 25 15:19:22 EST 2010

User development,

A new message was posted in the thread "VFS3 and symlinks":


Author  : John Bailey
Profile : http://community.jboss.org/people/johnbailey

Another possible solution (that I have not proven or even finished thinking about) is to detect a symlinked path at mount time and mount in both the symlinked path and the canonical path.  You wouldn't really need to mount multiple filesystems, as it would really be the same filesystem mounted in multiple locations in the VFS.  This would allow either path to be used from that point forward and both paths would resolve to the same filesysem entries. There would be no need to perform excessive getCanonicalFile calls once the mount has occurred.
Some things to think about:
1.  This only works if the mount occurs from the symlinked path however
2.  It would need to make sure the canonical path is not currently mounted with another filesystem
3.  Unmounting would need to remove both
Just a thought.


To reply to this message visit the message page: http://community.jboss.org/message/528610#528610

More information about the jboss-user mailing list