开发者

locate extended attributes

开发者 https://www.devze.com 2023-01-23 01:19 出处:网络
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 attribute开发者_StackOverflows (tags) (suppose in an ext3 file

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 attribute开发者_StackOverflows (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

0

精彩评论

暂无评论...
验证码 换一张
取 消