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