Lines Matching refs:volume
66 printf("usage: %s [ -e ] [ -p <path-to-search> ] [ -s ] [ -a || -v <path-to-volume> ] expression\n"
71 " -v <file>\tperform the query on just one volume; <file> can be any\n"
72 "\t\tfile on that volume. Defaults to the current volume.\n"
80 perform_query(BVolume &volume, const char *predicate, const char *filterpath)
84 // Set up the volume and predicate for the query.
85 query.SetVolume(&volume);
130 // Which volume do we make the query on?
131 // Default to the current volume.
168 BVolume volume;
171 // Find the volume that the query should be performed on,
179 status_t status = entry.GetVolume(&volume);
181 fprintf(stderr, "%s: could not get volume: %s\n", __progname, strerror(status));
185 if (!volume.KnowsQuery())
186 printf("query: volume containing %s is not query-enabled\n", volumePath);
188 perform_query(volume, argv[optind], directoryPath);
193 while (volumeRoster.GetNextVolume(&volume) == B_OK) {
196 if (volume.KnowsQuery())
197 perform_query(volume, argv[optind], directoryPath);