2

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?

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
student
  • 1,636
  • 3
  • 29
  • 53

1 Answers1

0

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

Dan D.
  • 73,243
  • 15
  • 104
  • 123