Lines Matching refs:device

117 CheckVolume(BVolume &volume, dev_t device, status_t error)
122 CHK(fs_stat_dev(device, &info) == 0);
123 // device
124 CHK(volume.Device() == device);
129 rootNode.device = device;
228 dev_t device = dev_for_path(volumeRootDir);
229 BVolume volume(device);
230 CheckVolume(volume, device, (device >= 0 ? B_OK : B_BAD_VALUE));
232 // invalid device ID
238 // invalid device ID
241 dev_t device = 213;
243 while (fs_stat_dev(device, &info) == 0)
244 device++;
245 BVolume volume(device);
268 dev_t device = dev_for_path(volumeRootDir);
269 status_t initError = (device >= 0 ? B_OK : B_BAD_VALUE);
271 CHK(volume1.SetTo(device) == initError);
272 CheckVolume(volume1, device, initError);
275 CHK(volume2.SetTo(device) == initError);
276 CheckVolume(volume2, device, initError);
279 CheckVolume(volume2, device, B_NO_INIT);
281 // invalid device ID
288 // invalid device ID
291 dev_t device = 213;
293 while (fs_stat_dev(device, &info) == 0)
294 device++;
296 CHK(volume.SetTo(device) == B_ENTRY_NOT_FOUND);
319 dev_t device = dev_for_path(volumeRootDir);
320 status_t initError = (device >= 0 ? B_OK : B_BAD_VALUE);
321 BVolume volume3(device);
322 CheckVolume(volume3, device, initError);
325 CheckVolume(volume1, device, initError);
328 CheckVolume(volume2, device, initError);
349 dev_t device = dev_for_path(volumeRootDir);
350 status_t initError = (device >= 0 ? B_OK : B_BAD_VALUE);
351 BVolume volume(device);
352 CheckVolume(volume, device, initError);
372 dev_t device = dev_for_path(testMountPoint);
373 BVolume volume(device);
374 CheckVolume(volume, device, B_OK);
383 CheckVolume(volume, device, B_OK);
390 CheckVolume(volume, device, B_OK);
447 dev_t device;
448 while ((device = next_dev(&cookie)) >= 0)
450 //printf(" device: %ld\n", device);
451 //BVolume dVolume(device);
461 devices.insert(device);
475 dev_t device = dev_for_path("/boot");
476 CHK(device >= 0);
477 CheckVolume(volume, device, B_OK);
491 device = volume.Device();
492 CHK(device >= 0);
493 CheckVolume(volume, device, B_OK);
494 CHK(devices.find(device) != devices.end());
495 devices.erase(device);
503 device = volume.Device();
504 CHK(device >= 0);
505 CheckVolume(volume, device, B_OK);
506 CHK(devices.find(device) != devices.end());
507 devices.erase(device);
539 dev_t device;
543 CHK(message.FindInt32("new device", &device) == B_OK);
544 CHK(message.FindInt32("device", &parentDevice) == B_OK);
547 CHK(device == expectedDevice);
548 CHK(parentDevice == nodeRef.device);
553 dev_t device;
555 CHK(message.FindInt32("device", &device) == B_OK);
557 CHK(device == expectedDevice);
576 dev_t device = dev_for_path(testMountPoint);
577 CHK(device >= 0);
582 CheckWatchingMessage(false, device, fApplication->Handler());
590 device = dev_for_path(testMountPoint);
591 CHK(device >= 0);
592 CheckWatchingMessage(true, device, fApplication->Handler(), nodeRef);
602 CheckWatchingMessage(false, device, *handler2);
607 device = dev_for_path(testMountPoint);
608 CHK(device >= 0);
609 CheckWatchingMessage(true, device, *handler2, nodeRef);