Lines Matching defs:volume
52 void _AddQuery(BVolume& volume,
80 // Which volume do we make the query on?
81 // Default to the current volume.
108 BVolume volume;
111 // Find the volume that the query should be performed on,
120 status_t status = entry.GetVolume(&volume);
122 fprintf(stderr, "%s: could not get volume: %s\n", kProgramName,
127 if (!volume.KnowsQuery()) {
128 fprintf(stderr, "%s: volume containing %s is not query-enabled\n",
131 _AddQuery(volume, argv[optind]);
136 while (volumeRoster.GetNextVolume(&volume) == B_OK) {
139 if (volume.KnowsQuery())
140 _AddQuery(volume, argv[optind]);
162 if (message->FindInt32("volume", &device) != B_OK
166 BVolume volume(device);
169 // Set up the volume and predicate for the query.
170 query->SetVolume(&volume);
216 printf("usage: %s [ -ef ] [ -a || -v <path-to-volume> ] expression\n"
220 " -v <file>\tperform the query on just one volume; <file> can be any\n"
221 "\t\tfile on that volume. Defaults to the current volume.\n"
230 LiveQuery::_AddQuery(BVolume& volume, const char* predicate)
233 add.AddInt32("volume", volume.Device());