• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: smb union mounts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: smb union mounts


  • Subject: Re: smb union mounts
  • From: Shantonu Sen <email@hidden>
  • Date: Mon, 29 Nov 2010 10:21:17 -0800

The union mount option (MNT_UNION) only works at the top level of the directory in question. It is not a unionfs that supports true recursive synthesis of a composite hierarchy.

Shantonu Sen
email@hidden



On Nov 27, 2010, at 8:07 AM, Raleigh Rinehart wrote:

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
References: 
 >smb union mounts (From: Raleigh Rinehart <email@hidden>)

  • Prev by Date: Re: smb union mounts
  • Next by Date: Re: smb union mounts
  • Previous by thread: Re: smb union mounts
  • Index(es):
    • Date
    • Thread