Lines Matching refs:path
24 IssueDeviceCommand(const char* path, int opcode, void* buffer,
28 if (fs_stat_dev(dev_for_path(path), &info) == B_OK) {
30 path = info.device_name;
33 int device = open(path, O_RDONLY);
40 fprintf(stderr, "Failed to process %d on %s: %s\n", opcode, path,
81 IsReadOnlyVolume(const char* path)
83 return IsReadOnlyVolume(dev_for_path(path));
88 BlockMedia(const char* path, bool block)
90 return IssueDeviceCommand(path, B_SCSI_PREVENT_ALLOW, &block,
96 EjectMedia(const char* path)
98 return IssueDeviceCommand(path, B_EJECT_DEVICE, NULL, 0);
105 BString path = originalPath;
109 path.ReplaceAll("$HOME", home);
110 path.ReplaceAll("${HOME}", home);
111 if (path.StartsWith("~/"))
112 path.ReplaceFirst("~", home);
114 return path;