Hi all,
I'm having a bit of a problem trying to union mount some smb shares.
What I'm trying to do is mount remote smb shares on my server and merge
them together into a single unified directory that then gets served out
via apache/tomcat.
Right now I am only trying to get things to work with 1 share mount and the local files.
Now for the details:
On my server I have a directory structure like this:
|---shared_stuff
.....|---12345
..........|---mac
...............|---logs
Then, we have other machines on the network have an almost identical
directory structure, except "mac" would be replaced with "win" (or
whatever), and there may be addtional directories not present on the
local machine.
For example:
|---shared_stuff
.....|---12345
....|---foo
.....|---bar
.........|---win
..............|---logs
All of these remote machines expose the dir as an SMB share.
Currently we are guaranteed that there will not be any files or folders that are identically named on any of the machines.
I am mounting the shares with this command:
mount_smbfs -o union -d766 -f766 -N //user@remotemachine/shareName shared_stuff/
The mount command succeeds, no error is given, and the share is there
and readable. However the union part is not working correctly. I seem
to get only a partial union. What I mean by that is that I can still
see local files in at the top level, shared_stuff, but any local files
below that are hidden by the mounted share. So for example if I have a
file(or folder) named onMac.txt in shared_stuff/ I can still see and use
that file after the mount. But if that file is in 12345/ then I can't,
all I see is the mounted stuff (which is what I would expect from a
"standard" non-union mount).
I'm hoping somebody might have some insight as to how I might make this
work, or if there is third party software that might work for this? I've looked
at MacFuse (with unionfs-fuse, or similar), but it seems to be stagnant
and support for 64bit kernels is questionable.
thanks,
-raleigh
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden