Hi,

On 12/12/15 19:41, Ali Yang wrote:
Hi support,

I want to know is it possible to index extended attributes of files. If we could do that, then we could search files based on extended attribute. We need a feature like tag for files. How could I do that?
Robinhood doesn't store information about extended attributes in its DB.
However, if you know precisely the extended attribute you are interested in you can refer to extended attributes in fileclass definitions:
example:

fileclass xattr_foo {
    # non empty user xattr 'foo'
    definition { xattr.user.foo != "" }
}

fileclass bar_abcde {
    # xattr 'bar' contains string "abcde" or "fghij"
    definition { xattr.user.bar == "abcde" or xattr.user.bar == "fghij" }
}

Then you can dump entries of a given class or pattern:
rbh-report --dump -C "classpattern"

And get overall reports about fileclasses:
rbh-report --classinfo[=classpattern]

If class matching is you first use-case, I suggest you use robinhood v3.0 already (will be out in the next few days) as fileclass definition and matching is much more convenient than in 2.5.

Regards,
Thomas


—
Liping


------------------------------------------------------------------------------


_______________________________________________
robinhood-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/robinhood-support

------------------------------------------------------------------------------
_______________________________________________
robinhood-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/robinhood-support

Reply via email to