mounting windows shares with path exactly like on windows
Quoted 18 lines · Alan Jenkins
Quoted 17 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:
# mkdir -p /D:/dir # mount.cifs ... # touch /D:/dir/file
Quoted 5 lines
Quoted 3 lines
?
Or, use symlinks from /D:/dir to /mountpoint/dir/
That only works from the root directory though. In unix, "C:/" is a relative path.
Yeah, creating "C:" symlink in each and every directory accessed by the application doesn't sound like a neat solution.
BTW, it's the first time I hear about a unix application which has paths like D:/ or C:/ hardcoded.
Signature · 2 lines
Tomasz Chmielewski http://wpkg.org
Quoted 20 lines · Tomasz Chmielewski
Quoted 18 lines · Alan Jenkins
Quoted 17 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:
# mkdir -p /D:/dir # mount.cifs ... # touch /D:/dir/file
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
?
Or, use symlinks from /D:/dir to /mountpoint/dir/
That only works from the root directory though. In unix, "C:/" is a relative path.
Yeah, creating "C:" symlink in each and every directory accessed by the application doesn't sound like a neat solution.
current working directory, actually. Which means you don't necessarily have to use the filesystem root but only a proper start directory for these mounts/links. But yeah, we don't know if said proprietary application does/doesn't cwd() to it.
I suggest extending this mess a bit:
# mkdir -p /server/share # mount.cifs ...
and use UNC paths. '//server/share/dir/file.txt' will work out nicely :-)
Thorsten.
Quoted 7 lines
BTW, it's the first time I hear about a unix application which has paths like D:/ or C:/ hardcoded.
Signature · 2 lines
Tomasz Chmielewski http://wpkg.org
Signature · 3 lines
| Thorsten Kranzkowski Internet: [email protected] | | Mobile: ++49 170 1876134 Snail: Kiebitzstr. 14, 49324 Melle, Germany | | Ampr: dl8bcu@db0lj.#rpl.deu.eu, [email protected] [44.130.8.19] |