Skip to contentSkip to conversation

mounting windows shares with path exactly like on windows

DISCUSSION Tomasz Chmielewski 2 participants 2 messages Aug 29, 2008

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines

In short - I've got bunch of applications running both on windows and linux and these applications \
exchange links to files mounted on both sides. The problem is that these paths are different, i.e. like \
D:/dir/file on windows and /mountpoint/dir/file on Linux. What I need is unifying them. So my idea is to \
have path translator on anything on kernel level, which will make Linux open call to D:/dir/file on Linux \
work and open /mountpoint/dir/file. Was anything close to that ever incorporated in kernel?

What's wrong with just:

# mkdir -p /D:/dir
# mount.cifs ...
# touch /D:/dir/file

?

Or, use symlinks from /D:/dir to /mountpoint/dir/

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org
#1 lore raw
Quoted 13 lines · Tomasz Chmielewski
Quoted 10 lines

In short - I've got bunch of applications running both on windows and linux and these applications \
exchange links to files mounted on both sides. The problem is that these paths are different, i.e. like \
D:/dir/file on windows and /mountpoint/dir/file on Linux. What I need is unifying them. So my idea is to \
have path translator on anything on kernel level, which will make Linux open call to D:/dir/file on Linux \
work and open /mountpoint/dir/file. Was anything close to that ever incorporated in kernel?

What's wrong with just:

Quoted 7 lines
# mkdir -p /D:/dir
# mount.cifs ...
# touch /D:/dir/file

?

Or, use symlinks from /D:/dir to /mountpoint/dir/

That only works from the root directory though. In unix, "C:/" is a relative path.

Alan