Lines Matching refs:opath
344 static int get_attrs(disk_t *diskp, int fd, char *opath,
417 char opath[MAXPATHLEN]; in drive_get_attributes() local
424 opath[0] = 0; in drive_get_attributes()
425 fd = drive_open_disk(dp->p.disk, opath, sizeof (opath)); in drive_get_attributes()
427 if ((*errp = get_attrs(dp->p.disk, fd, opath, attrs)) != 0) { in drive_get_attributes()
636 drive_open_disk(disk_t *diskp, char *opath, int len) in drive_open_disk() argument
643 if (opath != NULL) { in drive_open_disk()
644 (void) strlcpy(opath, devpath, len); in drive_open_disk()
865 get_attrs(disk_t *diskp, int fd, char *opath, nvlist_t *attrs) in get_attrs() argument
954 if (strlen(opath) > 0) { in get_attrs()
955 if (nvlist_add_string(attrs, DM_OPATH, opath) != 0) { in get_attrs()