Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

OSX tags getting stripped

Featured Replies

Hi all,

 

Im about to migrate all my work to a brand new Unraid setup, coming from Synology.

 

The thing holding my back is that whenever I copy or move a file around my server with a Mac OSX tag ("label") it gets stripped. I've also tried to copy tagged files through NFS and SMB from my Synology and Mac - all files gets stripped of their tags. Seems like I can maintain the tags if I just leave them on the share on Unraid - but im guessing I will run into trouble when using cache drives, and im loosing the flexibility to move things around with Krusader and stuff.

 

Does this anything to do with missing xattr?

 

Are there any ways to get around this?

Edited by tarzan

When I add macOS "labels/tags" on a file or directory from a Unraid share via samba protocol it adds EA data:

root@Tower:/mnt/user/testshare# getfattr test_folder/
# file: test_folder/
user.DOSATTRIB
user.DosStream.com.apple.metadata:_kMDItemUserTags:$DATA
user.org.netatalk.Metadata

Additionally, 'getfattr' will show the values, along with the keys above, with the -d argument.

 

I did another test involving a cache pool setup:

  1. Created another share named 'cache-first' with Cache mode set to 'only.'
  2. Browsed to the 'cache-first' share from a mac, created a new folder, and then applied macOS "tags" to it.
  3. Verified those EAs were present using 'getfattr folder-name'.
  4. Change 'cache-first' Share's Cache mode to 'yes'.
  5. Run the mover
  6. Verified 'cache-first' share exists on the array now, and the EAs are still present. My mac again shows the correct "tags" I added previously.

I can also copy/move files or folders between my mac and Unraid, in either direction, and the "tags" persist.

 

macOS version 10.14.6

Unraid version 6.8.3

Two BTRFS formatted SSDs in my Cache Pool

Array disks all XFS-luks

 

If you're working from a terminal, using 'cp,' 'rsync,' or 'scp' for example, ensure you provide any arguments you may need to preserve xattr.

 

  • Author

Hello Schultz, and thanks for the reply.

 

Ive tried to copy a file on my unraid with cp -a --preserve=xattr source destination - but the tags will still be stripped. Do I need to install anything specific to make this work?

Edited by tarzan

Are there hidden files or folders that live on the Synology share?  I think macOS will update a separate hidden file to hold that metadata if it can't add xattr on the file directly.  (I don't have a Synology box here unfortunately)

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.