and '%' directives. The supported directives include most supported by
\fBfind\fP(1) and the following extensions:
.RS
-.IP %{fid}, %LF
+.IP %{stripe-count},%Lc
+stripe count of last instantiated component
+.IP %{fid},%LF
file FID
-.IP %{projid}
-numerical project ID
-.IP %{mirror-count}, %LN
+.IP %{mirror-count},%LN
FLR mirror count
-.IP %{stripe-count}, %Lc
-stripe count of last instantiated component
-.IP %{stripe-size}, %LS
+.IP %{projid},%LP
+numerical project ID
+.IP %{stripe-size},%LS
stripe size of last instantiated component
.IP %{xattr:NAME}
contents of NAME xattr as a string
case 'L': /* formats like lfs find */
c = fmt[n++];
switch (c) {
- case 'S':
- LF3_EMIT_N('d', "(lov-stripe-size)");
- break;
case 'c':
LF3_EMIT_N('d', "(lov-stripe-count)");
break;
+ case 'F':
+ LF3_EMIT_S('a', "(file-fid)");
+ break;
case 'N':
LF3_EMIT_N('d', "(lov-mirror-count)");
break;
- case 'F':
- LF3_EMIT_S('a', "(file-fid)");
+ case 'P':
+ LF3_EMIT_N('d', "(projid)");
+ break;
+ case 'S':
+ LF3_EMIT_N('d', "(lov-stripe-size)");
break;
}
break;
// pools
if (strcmp(ext, "fid") == 0)
LF3_EMIT_S('a', "(file-fid)");
- else if (strcmp(ext, "stripe-size") == 0)
- LF3_EMIT_N('d', "(lov-stripe-size)", ext);
- else if (strcmp(ext, "stripe-count") == 0)
- LF3_EMIT_N('d', "(lov-stripe-count)", ext);
else if (strcmp(ext, "mirror-count") == 0)
LF3_EMIT_N('d', "(lov-mirror-count)", ext);
else if (strcmp(ext, "projid") == 0)
- LF3_EMIT_N('d', "(%s)", ext);
+ LF3_EMIT_N('d', "(projid)", ext);
+ else if (strcmp(ext, "stripe-count") == 0)
+ LF3_EMIT_N('d', "(lov-stripe-count)", ext);
+ else if (strcmp(ext, "stripe-size") == 0)
+ LF3_EMIT_N('d', "(lov-stripe-size)", ext);
else if (strstartswith(ext, "xattr:"))
LF3_EMIT_S('a', "(or (xattr-ref-string %Q) %Q)", ext + strlen("xattr:"), "");
else