Home | History | Annotate | Download | only in cros

Lines Matching refs:disk

18 MountLibrary::Disk::Disk(const std::string& device_path,
112 virtual void RefreshDiskProperties(const Disk* disk) OVERRIDE {
114 DCHECK(disk);
116 OnGetDiskProperties(disk->device_path().c_str(),
122 GetDiskProperties(disk->device_path().c_str(),
158 // Callback for disk information retrieval calls.
161 const DiskInfo* disk,
167 disk,
206 // disk might have been removed by now?
209 Disk* disk = iter->second;
210 DCHECK(disk);
211 disk->set_mount_path(mount_path);
212 FireDiskStatusUpdate(MOUNT_DISK_MOUNTED, disk);
228 // disk might have been removed by now?
231 Disk* disk = iter->second;
232 DCHECK(disk);
233 disk->clear_mount_path();
234 FireDiskStatusUpdate(MOUNT_DISK_UNMOUNTED, disk);
254 const DiskInfoAdvanced* disk =
256 if (disk->on_boot_device())
259 LOG(WARNING) << "Found disk " << device_path;
260 // Delete previous disk info for this path:
277 if (disk->path() != NULL)
278 path = disk->path();
280 if (disk->mount_path() != NULL)
281 mountpath = disk->mount_path();
283 if (disk->system_path() != NULL)
284 systempath = disk->system_path();
286 if (disk->file_path() != NULL)
287 filepath = disk->file_path();
289 if (disk->label() != NULL)
290 devicelabel = disk->label();
292 if (disk->drive_label() != NULL)
293 drivelabel = disk->drive_label();
295 if (disk->partition_slave() != NULL)
296 parentpath = disk->partition_slave();
298 Disk* new_disk = new Disk(path,
305 disk->device_type(),
306 disk->size(),
307 disk->is_drive(),
308 disk->is_read_only(),
309 disk->has_media(),
310 disk->on_boot_device());
312 std::pair<std::string, Disk*>(device_path_string, new_disk));
337 // Initiate disk property retrieval for each relevant device path.
350 Disk* disk = iter->second;
351 FireDiskStatusUpdate(MOUNT_DISK_REMOVED, disk);
378 Disk* disk = iter->second;
379 FireDiskStatusUpdate(MOUNT_DISK_REMOVED, disk);
408 const Disk* disk) {
412 Observer, observers_, DiskChanged(evt, disk));