3 ms·
xattr is arguably worse for NTFS. While there is no limit to NTFS extended attributes, they are represented transparently as a separate file on the filesystem.
by fao_ 8y ago
xattr is arguably worse for NTFS. While there is no limit to NTFS extended attributes, they are represented transparently as a separate file on the filesystem. Unlike where on linux all tools will suffice to copy xattrs because they are part of the file, on Windows, a copy tool needs to be aware of xattrs or they will be lost.
Relying on f_fsid as an actual filesystem id is batshit stupid. It is only "guaranteed" (And, bear in mind, POSIX doesn't specify anything in relation to f_fsid, so I have no idea what authority is guaranteeing this claim) that f_fsid+inode creates a uniquely identifying pair. Aside from that, a filesystem could fill it with literally anything to assure that. As the linux documentation says: "Nobody knows what f_fsid is supposed to contain"
See, the Linux documentation on statvfs:
The general idea is that f_fsid contains some random stuff such that
the pair (f_fsid,ino) uniquely determines a file. Some operating
systems use (a variation on) the device number, or the device number
combined with the filesystem type. Several operating systems
restrict giving out the f_fsid field to the superuser only (and zero
it for unprivileged users), because this field is used in the
filehandle of the filesystem when NFS-exported, and giving it out is
a security concern.