Lines Matching defs:device

29 "Usage: %s <options> <device>\n"
75 virtual bool Visit(BDiskDevice *device)
78 status_t error = device->GetPath(&path);
84 printf("device %" B_PRId32 ": \"%s\"\n", device->ID(), pathString);
85 printf(" has media: %d\n", device->HasMedia());
86 printf(" removable: %d\n", device->IsRemovableMedia());
87 printf(" read only: %d\n", device->IsReadOnlyMedia());
88 printf(" write once: %d\n", device->IsWriteOnceMedia());
90 Visit(device, 0);
118 printf("%s device: %d\n", prefix, partition->IsDevice());
166 virtual bool Visit(BDiskDevice* device)
172 status_t error = device->GetPath(&path);
182 if (device->HasMedia()) {
183 if (device->IsRemovableMedia()) {
189 if (device->IsReadOnlyMedia()) {
190 if (device->IsWriteOnceMedia())
201 printf("\ndevice %" B_PRId32 ": \"%s\": %s%s\n\n", device->ID(), pathString,
205 Visit(device, 0);
228 virtual bool Visit(BDiskDevice *device)
230 return Visit(device, 0);
246 Partitioner(BDiskDevice* device)
247 : fDevice(device),
254 // prepare device modifications
261 printf("Error: Failed to prepare device for modifications: "
301 " l - lists the device's partitions recursively\n"
302 " ll - lists the device's partitions recursively, long "
654 printf("Error: Failed to prepare device for modifications: "
662 // if the disk device has no children, we select it without asking
852 // only the device path should remain
857 // get the disk device
859 BDiskDevice device;
860 status_t error = roster.GetDeviceForPath(devicePath, &device);
862 fprintf(stderr, "Error: Failed to get disk device for path \"%s\": "
866 Partitioner partitioner(&device);