Details

    • Improvement
    • Resolution: Won't Do
    • Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Once the jobid is added to files as an xattr, lfs find should be modified to allow searching on this value.

      There can be a --jobid argument, and perhaps a printf directive like "%LJ" as well.

      Attachments

        Issue Links

          Activity

            [LU-16798] lfs find: new --jobid option

            bertschinger, while I agree that the jobid xattr name could be set arbitrarily, I think in the common case it would either user.job or trusted.job, and as such it would still be a useful convenience option to have a "--jobid XXXX" option was a "convenience" alias that searched for both "--xattr user.job=XXXX" and "--xattr user.job=XXXX" xattr names instead of having to specify this directly on the command line.

            The lfs-find.1 man page could document this behavior of "--jobid" and recommend falling back to the --xattr option as needed. Actually, it might be possible for the configuration parameter that sets "job_xattr" on the servers to be copied/renamed to a client parameter name, where it would just be saved in memory to be printed again for exactly this usage.

            adilger Andreas Dilger added a comment - bertschinger , while I agree that the jobid xattr name could be set arbitrarily, I think in the common case it would either user.job or trusted.job , and as such it would still be a useful convenience option to have a " --jobid XXXX " option was a "convenience" alias that searched for both " --xattr user.job=XXXX " and " --xattr user.job=XXXX " xattr names instead of having to specify this directly on the command line. The lfs-find.1 man page could document this behavior of " --jobid " and recommend falling back to the --xattr option as needed. Actually, it might be possible for the configuration parameter that sets " job_xattr " on the servers to be copied/renamed to a client parameter name, where it would just be saved in memory to be printed again for exactly this usage.

            Rejecting because the jobid xattr name is being determined via an MDT parameter, thus any user tool that uses the xattr will need to take the xattr name as an argument. This makes this redundant with lfs find --xattr which takes the xattr name as an argument. This option would only be useful if the xattr name could be hardcoded (or automatically queried) from a client utility, which is not currently the case.

            bertschinger Thomas Bertschinger added a comment - Rejecting because the jobid xattr name is being determined via an MDT parameter, thus any user tool that uses the xattr will need to take the xattr name as an argument. This makes this redundant with lfs find --xattr which takes the xattr name as an argument. This option would only be useful if the xattr name could be hardcoded (or automatically queried) from a client utility, which is not currently the case.

            People

              wc-triage WC Triage
              bertschinger Thomas Bertschinger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: