4 ms·
User notes and other file metadata has been supported since Linux Kernel 2.6. See man xattr https://man7.org/linux/man-pages/man7/xattr.7.html https://man7.or
by keernan 2y ago
User notes and other file metadata has been supported since Linux Kernel 2.6.
See man xattr
https://man7.org/linux/man-pages/man7/xattr.7.html https://man7.org/linux/man-pages/man7/xattr.7.html
Since it is baked into the file system, it is pretty easy to create bash scripts to add keyword tags by parsing the directory tree (e.g. batch add tags to books, movies, videos, etc stored in hierarchical category directories).
- walterbell 2y agoPreservation of xattrs is app-dependent? https://news.ycombinator.com/item?id=42807500 https://news.ycombinator.com/item?id=42807500
- keernan 2y agoMost apps have flags to be used to preserve xattrs. Others were written as though they never knew xattr existed and therefore fail to use the kernel flags to preserve them. But it is not that difficult to preserve them once you are using them. I use rsync to back up my book, music, and video collections (which is where I use them) and the meta data is backed up with them - so if something ever happens I can always restore them. The xattr commands also have a backup and restore for just the xattr built in.
- walterbell 2y agoCould a custom Linux kernel force xattr preservation flags on even for xattr-unaware apps?
- keernan 2y agoAssuming the application used kernel file system calls, I don't see why not.