Lines Matching refs:error

113 	VOPNAME_FRLOCK,		{ .error = fs_error },
114 VOPNAME_DISPOSE, { .error = fs_error },
115 VOPNAME_SHRLOCK, { .error = fs_error },
127 int error; in auto_open() local
131 error = auto_trigger_mount(*vpp, cred, &newvp); in auto_open()
132 if (error) in auto_open()
141 error = VOP_ACCESS(*vpp, VREAD, 0, cred, ct); in auto_open()
142 if (!error) in auto_open()
143 error = VOP_OPEN(vpp, flag, cred, ct); in auto_open()
148 error)); in auto_open()
149 return (error); in auto_open()
176 int error; in auto_getattr() local
184 error = auto_trigger_mount(vp, cred, &newvp); in auto_getattr()
185 if (error) in auto_getattr()
186 return (error); in auto_getattr()
191 if (error = vn_vfsrlock_wait(vp)) { in auto_getattr()
193 return (error); in auto_getattr()
206 if (error = vn_vfsrlock_wait(vp)) in auto_getattr()
207 return (error); in auto_getattr()
216 error = VFS_ROOT(vfsp, &newvp); in auto_getattr()
218 if (error) in auto_getattr()
219 return (error); in auto_getattr()
236 error = VOP_GETATTR(newvp, vap, flags, cred, ct); in auto_getattr()
246 return (error); in auto_getattr()
283 int error; in auto_setattr() local
287 if (error = auto_trigger_mount(vp, cred, &newvp)) in auto_setattr()
295 error = EROFS; in auto_setattr()
297 error = VOP_SETATTR(newvp, vap, flags, cred, ct); in auto_setattr()
300 error = ENOSYS; in auto_setattr()
303 AUTOFS_DPRINT((5, "auto_setattr: error=%d\n", error)); in auto_setattr()
304 return (error); in auto_setattr()
318 int error; in auto_access() local
322 if (error = auto_trigger_mount(vp, cred, &newvp)) in auto_access()
329 error = VOP_ACCESS(newvp, mode, 0, cred, ct); in auto_access()
338 ASSERT(error == 0); in auto_access()
344 error = secpolicy_vnode_access2(cred, vp, fnp->fn_uid, in auto_access()
349 AUTOFS_DPRINT((5, "auto_access: error=%d\n", error)); in auto_access()
350 return (error); in auto_access()
366 int error = 0; in auto_lookup() local
385 if (error = VOP_ACCESS(dvp, VEXEC, 0, cred, ct)) in auto_lookup()
386 return (error); in auto_lookup()
418 error = VOP_LOOKUP(vp, nm, vpp, pnp, flags, rdir, cred, in auto_lookup()
421 return (error); in auto_lookup()
446 error = auto_wait4mount(dfnp); in auto_lookup()
447 if (error == AUTOFS_SHUTDOWN) in auto_lookup()
448 error = ENOENT; in auto_lookup()
449 if (error == EAGAIN) in auto_lookup()
451 if (error) in auto_lookup()
452 return (error); in auto_lookup()
457 error = vn_vfsrlock_wait(dvp); in auto_lookup()
458 if (error) in auto_lookup()
459 return (error); in auto_lookup()
462 error = VFS_ROOT(vfsp, &newvp); in auto_lookup()
464 if (!error) { in auto_lookup()
465 error = VOP_LOOKUP(newvp, nm, vpp, pnp, in auto_lookup()
469 return (error); in auto_lookup()
474 error = auto_search(dfnp, nm, &fnp, cred); in auto_lookup()
475 if (error) { in auto_lookup()
485 error = ENOENT; in auto_lookup()
494 error = 0; in auto_lookup()
510 error = auto_search(dfnp, nm, &fnp, cred); in auto_lookup()
514 if (error) { in auto_lookup()
519 error = auto_enter(dfnp, nm, &fnp, kcred); in auto_lookup()
520 if (!error) in auto_lookup()
534 error = 0; in auto_lookup()
539 if (error == EAGAIN) { in auto_lookup()
543 if (error) { in auto_lookup()
545 return (error); in auto_lookup()
566 error = auto_wait4mount(fnp); in auto_lookup()
568 if (error == AUTOFS_SHUTDOWN) in auto_lookup()
569 error = ENOENT; in auto_lookup()
570 if (error && error != EAGAIN) in auto_lookup()
571 return (error); in auto_lookup()
580 error = fnp->fn_error; in auto_lookup()
581 if ((error == EINTR) || (error == EAGAIN)) { in auto_lookup()
594 if (!error) in auto_lookup()
598 return (error); in auto_lookup()
611 error = auto_lookup_aux(fnp, searchnm, cred); in auto_lookup()
612 if (!error) { in auto_lookup()
639 error = auto_wait4mount(fnp); in auto_lookup()
640 if (error == AUTOFS_SHUTDOWN) in auto_lookup()
641 error = ENOENT; in auto_lookup()
647 if (!error) in auto_lookup()
658 nm, (void *)*vpp, error)); in auto_lookup()
660 return (error); in auto_lookup()
677 int error; in auto_create() local
681 if (error = auto_trigger_mount(dvp, cred, &newvp)) in auto_create()
689 error = EROFS; in auto_create()
691 error = VOP_CREATE(newvp, nm, va, excl, in auto_create()
695 error = ENOSYS; in auto_create()
698 AUTOFS_DPRINT((5, "auto_create: error=%d\n", error)); in auto_create()
699 return (error); in auto_create()
711 int error; in auto_remove() local
715 if (error = auto_trigger_mount(dvp, cred, &newvp)) in auto_remove()
723 error = EROFS; in auto_remove()
725 error = VOP_REMOVE(newvp, nm, cred, ct, flags); in auto_remove()
728 error = ENOSYS; in auto_remove()
731 AUTOFS_DPRINT((5, "auto_remove: error=%d\n", error)); in auto_remove()
732 return (error); in auto_remove()
745 int error; in auto_link() local
750 if (error = auto_trigger_mount(tdvp, cred, &newvp)) in auto_link()
757 error = ENOSYS; in auto_link()
762 error = EROFS; in auto_link()
771 error = ENOSYS; in auto_link()
776 error = VOP_LINK(newvp, svp, nm, cred, ct, flags); in auto_link()
780 AUTOFS_DPRINT((5, "auto_link error=%d\n", error)); in auto_link()
781 return (error); in auto_link()
795 int error; in auto_rename() local
806 if (error = auto_trigger_mount(odvp, cr, &o_newvp)) in auto_rename()
813 error = ENOSYS; in auto_rename()
822 if (error = auto_trigger_mount(ndvp, cr, &n_newvp)) { in auto_rename()
831 error = ENOSYS; in auto_rename()
846 error = EROFS; in auto_rename()
853 error = VOP_RENAME(o_newvp, onm, n_newvp, nnm, cr, ct, flags); in auto_rename()
859 AUTOFS_DPRINT((5, "auto_rename error=%d\n", error)); in auto_rename()
860 return (error); in auto_rename()
875 int error; in auto_mkdir() local
879 if (error = auto_trigger_mount(dvp, cred, &newvp)) in auto_mkdir()
887 error = EROFS; in auto_mkdir()
889 error = VOP_MKDIR(newvp, nm, va, vpp, cred, ct, in auto_mkdir()
893 error = ENOSYS; in auto_mkdir()
896 AUTOFS_DPRINT((5, "auto_mkdir: error=%d\n", error)); in auto_mkdir()
897 return (error); in auto_mkdir()
910 int error; in auto_rmdir() local
914 if (error = auto_trigger_mount(dvp, cred, &newvp)) in auto_rmdir()
922 error = EROFS; in auto_rmdir()
924 error = VOP_RMDIR(newvp, nm, cdir, cred, ct, flags); in auto_rmdir()
927 error = ENOSYS; in auto_rmdir()
930 AUTOFS_DPRINT((5, "auto_rmdir: error=%d\n", error)); in auto_rmdir()
931 return (error); in auto_rmdir()
963 int error = 0; in auto_readdir() local
1005 error = auto_calldaemon(fngp->fng_zoneid, in auto_readdir()
1019 if (!error) { in auto_readdir()
1020 error = rd.rd_status; in auto_readdir()
1024 if (error) { in auto_readdir()
1025 if (error == AUTOFS_SHUTDOWN) { in auto_readdir()
1029 error = 0; in auto_readdir()
1078 error = uiomove(dp, outcount, UIO_READ, uiop); in auto_readdir()
1086 error = EINVAL; in auto_readdir()
1089 if (rd.rd_rddir.rddir_eof && !error) { in auto_readdir()
1094 if (!error && !myeof && outcount == 0) { in auto_readdir()
1111 error = EINVAL; in auto_readdir()
1127 error = EINVAL; in auto_readdir()
1188 error = uiomove(outbuf, outcount, UIO_READ, uiop); in auto_readdir()
1190 if (!error) { in auto_readdir()
1200 error = EINVAL; in auto_readdir()
1226 return (error); in auto_readdir()
1240 int error; in auto_symlink() local
1245 if (error = auto_trigger_mount(dvp, cred, &newvp)) in auto_symlink()
1253 error = EROFS; in auto_symlink()
1255 error = VOP_SYMLINK(newvp, lnknm, tva, tnm, cred, in auto_symlink()
1259 error = ENOSYS; in auto_symlink()
1262 AUTOFS_DPRINT((5, "auto_symlink: error=%d\n", error)); in auto_symlink()
1263 return (error); in auto_symlink()
1271 int error; in auto_readlink() local
1280 error = EINVAL; in auto_readlink()
1284 error = uiomove(fnp->fn_symlink, MIN(fnp->fn_symlinklen, in auto_readlink()
1288 AUTOFS_DPRINT((5, "auto_readlink: error=%d\n", error)); in auto_readlink()
1289 return (error); in auto_readlink()
1397 int error; in auto_trigger_mount() local
1410 error = 0; in auto_trigger_mount()
1419 error = auto_wait4mount(fnp); in auto_trigger_mount()
1420 if (error == AUTOFS_SHUTDOWN) { in auto_trigger_mount()
1421 error = 0; in auto_trigger_mount()
1424 if (error && error != EAGAIN) in auto_trigger_mount()
1426 error = 0; in auto_trigger_mount()
1441 error = vn_vfswlock_wait(vp); in auto_trigger_mount()
1442 if (error) in auto_trigger_mount()
1457 error = VFS_ROOT(vfsp, newvp); in auto_trigger_mount()
1473 error = EIO; in auto_trigger_mount()
1514 error = auto_wait4mount(fnp); in auto_trigger_mount()
1515 if (error == EAGAIN) in auto_trigger_mount()
1517 if (error == AUTOFS_SHUTDOWN) { in auto_trigger_mount()
1518 error = 0; in auto_trigger_mount()
1521 if (error == 0) { in auto_trigger_mount()
1522 if (error = vn_vfsrlock_wait(vp)) in auto_trigger_mount()
1527 error = VFS_ROOT(vfsp, newvp); in auto_trigger_mount()
1538 AUTOFS_DPRINT((5, "auto_trigger_mount: error=%d\n", error)); in auto_trigger_mount()
1539 return (error); in auto_trigger_mount()