Lines Matching refs:zl
282 zut_lookup_t *zl;
292 zl = kmem_zalloc(sizeof (zut_lookup_t), KM_SLEEP);
294 error = ddi_copyin((void *)arg, zl, sizeof (zut_lookup_t), iflag);
301 zl->zl_retcode = zut_open_dir(zl->zl_dir, NULL, cr, flags, &rpn, &dvn);
302 if (zl->zl_retcode)
305 if (zl->zl_reqflags & ZUT_IGNORECASE)
308 zl->zl_retcode = VOP_LOOKUP(dvn, zl->zl_file, &fvn, NULL, flags, NULL,
309 cr, NULL, &zl->zl_deflags, &rpn);
310 if (zl->zl_retcode)
315 if (zl->zl_reqflags & ZUT_XATTR) {
324 zl->zl_retcode = VOP_ACCESS(fvn, ACE_READ_NAMED_ATTRS,
327 zl->zl_retcode = VOP_ACCESS(fvn, VREAD, 0, cr, NULL);
329 if (zl->zl_retcode)
333 zl->zl_retcode = VOP_GETATTR(fvn, &vattr, 0, cr, NULL);
334 if (zl->zl_retcode)
337 zl->zl_retcode = VOP_LOOKUP(fvn, "", &xdvn, NULL,
339 if (zl->zl_retcode)
344 zl->zl_retcode = VOP_LOOKUP(xdvn, zl->zl_xfile, &xfvn,
345 NULL, flags, NULL, cr, NULL, &zl->zl_deflags, &rpn);
346 if (zl->zl_retcode)
352 if (zl->zl_reqflags & ZUT_GETSTAT) {
353 zl->zl_retcode = zut_stat64(release,
354 &zl->zl_statbuf, &zl->zl_xvattrs, 0, cr);
358 (void) strlcpy(zl->zl_real, rpn.pn_path, MAXPATHLEN);
360 rc = ddi_copyout(zl, (void *)arg, sizeof (zut_lookup_t), iflag);
371 kmem_free(zl, sizeof (zut_lookup_t));