Extended attributes
Extended attributes
Posted Jan 3, 2019 22:38 UTC (Thu) by foom (subscriber, #14868)In reply to: Extended attributes by TheGopher
Parent article: A setback for fs-verity
But, to make xattrs support large data would effectively also require creating a brand new mechanism. It's not quite simple. As the tip of the iceberg, "getxattr" and "setxattr" can only deal with the entire value at once -- not a good idea for a large data stream.
However, other OSes do support this sort of thing, allowing "forks" of the file to be opened for reading/writing just as a normal file. E.g., Windows NTFS has "alternate data streams", and Solaris has "fsattr". (https://docs.oracle.com/cd/E19253-01/816-5175/6mbba7f02/)