TMSU icon indicating copy to clipboard operation
TMSU copied to clipboard

Support user.xdg.tags

Open vHanda opened this issue 11 years ago • 4 comments

KDE software typically store tags in the extended attributes of the file under the key "user.xdg.tags". It would be amazing if TMSU could also do that / read tags from there.

vHanda avatar Dec 17 '14 12:12 vHanda

Hi vHanda,

I had avoided extended attributes as a storage medium when I started TMSU because not all filesystems support them and many programs don't mantain them when files are modified.

But I see no reason why reading/writing extended attributes should not be an optional feature in TMSU. I'll have a look into supporting this.

Thanks, Paul

oniony avatar Dec 17 '14 13:12 oniony

Thanks a lot oniony.

vHanda avatar Dec 17 '14 14:12 vHanda

not all filesystems support them and many programs don't mantain them when files are modified.

Well now Btrfs, Ext2/3/4, XFS, HFS+ and ZFS support XFAttrs. Even NTFS supports them with user_xattr or streams_interface=xattr mount flags. And now NFS supports xattrs from Linux Kernel 5.5. And I'm already using xattrs on my NFS server share.

In Linux windows data streams are mapped to extended file attributes in fuse.

Major core linux utilities support it now. mv preserves it my default and cp, rsync and tar preserve it through just a flag, which can be aliased in shell. Backup tools like rustic, syncthing and duplicity also have the feature to support it.

curable-online avatar Dec 13 '23 13:12 curable-online