Using Extended Attributes to Tag Files
Posted23 days agoActive23 days ago
alexlance.blogTech Discussionstory
informativepositive
Debate
20/100
Documentation ManagementExtended AttributesTagging Systems
Key topics
Documentation Management
Extended Attributes
Tagging Systems
Discussion Activity
Light discussionFirst comment
N/A
Peak period
3
18-20h
Avg / period
1.7
Key moments
- 01Story posted
Dec 10, 2025 at 10:36 PM EST
23 days ago
Step 01 - 02First comment
Dec 10, 2025 at 10:36 PM EST
0s after posting
Step 02 - 03Peak activity
3 comments in 18-20h
Hottest window of the conversation
Step 03 - 04Latest activity
Dec 11, 2025 at 5:48 PM EST
23 days ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 46227357Type: storyLast synced: 12/11/2025, 6:36:19 AM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
One rule of thumb is `mv` will keep the attributes by default (given similar filesystem) and everything else needs tweaking/extra args. There's a section on it over here:
https://wiki.archlinux.org/title/Extended_attributes#Preserv...
The system call to read these attributes is getxattr(), for anyone curious.
Eg: one could piggy-back an entirely new file onto an existing file (it might have to be text encoded?).
It looks like the kernel might impose a limit of 64KiB on a file's metadata, but that's still quite a lot of room for data smuggling...