Lines Matching refs:disk
49 disk_ioctl(const char *disk, unsigned long cmd, void *d)
55 /* Open the disk. */
56 fd = opendisk(disk, O_RDONLY, diskpath, sizeof(diskpath), 0);
71 get_wedge_list(const char *disk, struct dkwedge_list *dkwl)
77 if (!disk_ioctl(disk, DIOCLWEDGES, dkwl))
93 get_wedge_info(const char *disk, struct dkwedge_info *dkw)
96 return disk_ioctl(disk, DIOCGWEDGEINFO, dkw);
100 get_disk_geom(const char *disk, struct disk_geom *d)
105 if ((fd = opendisk(disk, O_RDONLY, buf, sizeof(buf), 0)) == -1)
108 error = getdiskinfo(disk, fd, NULL, d, NULL);
118 get_label_geom(const char *disk, struct disklabel *l)
121 return disk_ioctl(disk, DIOCGDINFO, l);