문제

Is there a simple way to write a kind of wrapper script or patch for updatedb (or locate) such that locate can find user defined extended attributes (tags) (suppose in an ext3 filesystem, mounted with user_xattr option), too?

도움이 되었습니까?

해결책

as locate is quite specialize to search a list of pathnames, what you'd want would be a new program that like updatedb scans the file system and collects (pathname, xattr, value) and then provides a way like locate to search this database by xattr and value from which it returns pathnames

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top