and '%' directives. The supported directives include most supported by
\fBfind\fP(1) and the following extensions:
.RS
-.IP %{fid}
-file FID
.IP %{projid}
numerical project ID
-.IP %{mirror-count}
-FLR mirror count
-.IP %{stripe-count}
-stripe count of last instantiated component
.IP %{xattr:NAME}
contents of NAME xattr as a string
.RE
// parent-fid
// parent-fids
// pools
- if (strcmp(ext, "fid") == 0)
- LF3_EMIT_S('a', "(fid)");
- else if (strcmp(ext, "projid") == 0 ||
- strcmp(ext, "stripe-count") == 0 ||
- strcmp(ext, "mirror-count") == 0)
- LF3_EMIT_N('d', "(%s)", ext);
+ /* TODO
+ * if (strcmp(ext, "fid") == 0)
+ * LF3_EMIT_S('a', "(fid)");
+ * else
+ */
+ if (strcmp(ext, "projid") == 0)
+ LF3_EMIT_N('d', "(%s)", ext);
+ /* TODO
+ * else if (strcmp(ext, "projid") == 0 ||
+ * strcmp(ext, "stripe-count") == 0 ||
+ * strcmp(ext, "mirror-count") == 0)
+ * LF3_EMIT_N('d', "(%s)", ext);
+ */
else if (strstartswith(ext, "xattr:"))
LF3_EMIT_S('a', "(or (xattr-ref-string %Q) %Q)", ext + strlen("xattr:"), "");
else