-
-
Notifications
You must be signed in to change notification settings - Fork 837
Description
this is summarizing what ideas came up regarding to this:
-
PR xattr: move to platform pkg, use cython, use bytes, use fd #3918, ACLs fd-based #3960, make bsdflags linux code fd-based #3961 seem to speed up processing a bit
-
if we would put xattrs / acls / bsdflags into the files cache (we already have the chunks list there), we would not need to read them from the filesystem IF we can reliably detect changes. is comparing ctime and inode_number enough for this? mtime and size are obviously not helpful with that.
-
if we put that stuff into the files cache, we might produce a resource usage issue for some systems that have a lot of xattrs/acls, but not a lot of memory. so there should be an option to not put it into the files cache and fallback to reading it from disk in that case.
-
there could be another option not to read and back up xattrs / acls at all. we already have that for bsdflags. if there are technical issues (see freebsd 12 FUSE xattr issues #3952) or you're sure there are no acls/xattrs or you don't need them for restore (but you have a megaton of small files), this likely is useful even if there is faster xattr/acl code.
-
keep in mind that xattrs might be big, see extend item data structure to better deal with large xattr-like things? #1681 - we shouldn't store big stuff into files cache.