Lines Matching defs:opath
338 static int get_attrs(disk_t *diskp, int fd, char *opath,
411 char opath[MAXPATHLEN];
418 opath[0] = 0;
419 fd = drive_open_disk(dp->p.disk, opath, sizeof (opath));
421 if ((*errp = get_attrs(dp->p.disk, fd, opath, attrs)) != 0) {
629 drive_open_disk(disk_t *diskp, char *opath, int len)
635 if (opath != NULL) {
636 (void) strlcpy(opath, diskp->aliases->devpaths->devpath, len);
854 get_attrs(disk_t *diskp, int fd, char *opath, nvlist_t *attrs)
939 if (strlen(opath) > 0) {
940 if (nvlist_add_string(attrs, DM_OPATH, opath) != 0) {