Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'publishing metadata to the network share' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
publishing metadata to the network share
Authored by: lullabud on May 06, '05 03:05:03PM
From the man page:
-p Publishes the local copies of the metadata stores for the volumes indicated to their real drives.
I just tried sudo mdutil -p /Volumes/networkshare/ on a linux hosted smb share and it did indeed put the spotlight index in the root of the shared folder, returned an error about the indexing status, then started indexing the disk. I'm waiting for spotlight to finish indexing everything right now to see if it works.

My guess is that if spotlight finds an index on a networked drive it'll use it and update it accordingly whenever accessing data on that disk. If so, my job just got a LOT less stressful.

[ Reply to This | # ]
Index status flag not persistent
Authored by: lullabud on May 06, '05 03:24:13PM
Well, it appears to me as though you'd have to enable indexing each time you mount a network share. Connecting to an SMB share which has an index on it already then checking the indexing status with sudo mdutil -s /Volumes/sharename/ says that indexing is disabled. If I enable it, unmount the share and remount it the flag will be reset, and I need to turn indexing on again. Using the spotlight search gui doesn't search the network drive's index, but using mdfind -onlyin /Volumes/networkshare/ does. I'd sure like to see a howto on this.

[ Reply to This | # ]