Lines Matching defs:error

203 	{ VOPNAME_LINK,		{ .error = fs_nosys } }, /* smbfs_link, */
208 { VOPNAME_SYMLINK, { .error = fs_nosys } }, /* smbfs_symlink, */
209 { VOPNAME_READLINK, { .error = fs_nosys } }, /* smbfs_readlink, */
212 { VOPNAME_FID, { .error = fs_nosys } }, /* smbfs_fid, */
218 { VOPNAME_REALVP, { .error = fs_nosys } }, /* smbfs_realvp, */
219 { VOPNAME_GETPAGE, { .error = fs_nosys } }, /* smbfs_getpage, */
220 { VOPNAME_PUTPAGE, { .error = fs_nosys } }, /* smbfs_putpage, */
221 { VOPNAME_MAP, { .error = fs_nosys } }, /* smbfs_map, */
222 { VOPNAME_ADDMAP, { .error = fs_nosys } }, /* smbfs_addmap, */
223 { VOPNAME_DELMAP, { .error = fs_nosys } }, /* smbfs_delmap, */
224 { VOPNAME_DUMP, { .error = fs_nosys } }, /* smbfs_dump, */
226 { VOPNAME_PAGEIO, { .error = fs_nosys } }, /* smbfs_pageio, */
254 int error = 0;
293 error = EACCES;
303 error = smbfs_smb_findopen(np, "*", 1,
306 if (error != 0)
359 error = smbfs_smb_open(np,
363 if (error)
386 SMBVDEBUG("error %d closing %s\n",
413 return (error);
446 * Returning an error here is the sane thing to do. A
510 int error;
514 error = 0;
534 error = smbfs_smb_findclose(fctx, scred);
546 error = smbfs_smb_close(
556 if (error) {
557 SMBVDEBUG("error %d closing %s\n",
558 error, np->n_rpath);
589 int error;
620 if (error = smbfsgetattr(vp, &va, cr))
621 return (error);
647 error = ESTALE;
649 error = smb_rwuio(ssp, np->n_fid, UIO_READ,
658 return (error);
674 int error, timo;
708 if (error = smbfsgetattr(vp, &va, cr))
709 return (error);
725 * will return an error.
754 error = ESTALE;
756 error = smb_rwuio(ssp, np->n_fid, UIO_WRITE,
759 if (error == 0) {
766 /* Don't error the I/O if this fails. */
777 return (error);
786 int error;
801 error = smbfs_fsync(vp, 0, cr, ct);
810 error = 0;
815 error = smbfs_directio(vp, (int)arg, cr);
823 error = smbfs_acl_iocget(vp, arg, flag, cr);
827 error = smbfs_acl_iocset(vp, arg, flag, cr);
831 error = ENOTTY;
835 return (error);
896 int error;
924 error = smbfsgetattr(vp, &oldva, cr);
925 if (error)
926 return (error);
931 error = secpolicy_vnode_setattr(cr, vp, vap, &oldva, flags,
933 if (error)
934 return (error);
938 error = smbfs_acl_setids(vp, vap, cr);
940 error = ENOSYS;
941 if (error != 0) {
942 SMBVDEBUG("error %d seting UID/GID on %s",
943 error, VTOSMB(vp)->n_rpath);
946 * error here, but that causes complaints
948 * So ignore this error, and go ahead with
965 int error = 0;
1033 error = smbfs_smb_tmpopen(np, rights, &scred, &fid);
1034 if (error) {
1035 SMBVDEBUG("error %d opening %s\n",
1036 error, np->n_rpath);
1061 error = smbfs_smb_setfsize(np, fid, vap->va_size, &scred);
1062 if (error) {
1063 SMBVDEBUG("setsize error %d file %s\n",
1064 error, np->n_rpath);
1094 error = smbfs_smb_setfattr(np, fid,
1096 if (error) {
1097 SMBVDEBUG("set times error %d file %s\n",
1098 error, np->n_rpath);
1116 SMBVDEBUG("error %d closing %s\n",
1123 return (error);
1334 int error = 0;
1359 error = smbfs_smb_flush(np, &scred);
1364 return (error);
1455 int error;
1481 error = smbfs_get_xattrdir(dvp, vpp, cr, flags);
1482 return (error);
1488 error = smbfslookup(dvp, nm, vpp, cr, 1, ct);
1492 return (error);
1500 int error;
1554 error = smbfs_access(dvp, VEXEC, 0, cr, ct);
1555 if (error)
1556 return (error);
1619 error = smbfs_xa_parent(dvp, vpp);
1620 return (error);
1661 error = smbfslookup_cache(dvp, nm, nmlen, &vp, cr);
1662 if (error)
1663 return (error);
1677 error = smbfs_smb_lookup(dnp, &name, &nmlen, &fa, &scred);
1679 if (error == ENOTDIR) {
1688 if (error)
1691 error = smbfs_nget(dvp, name, nmlen, &fa, &vp);
1692 if (error)
1703 return (error);
1733 int error;
1752 error = smbfsgetattr(dvp, &va, cr);
1753 if (error) {
1757 return (error);
1813 int error;
1892 error = smbfslookup(dvp, nm, &vp, cr, 0, ct);
1893 if (error == 0) {
1899 error = EEXIST;
1906 error = smbfs_access(vp, mode, 0, cr, ct);
1907 if (error) {
1917 error = smbfssetattr(vp, &vattr, 0, cr);
1918 if (error) {
1934 error = smbfs_access(dvp, VWRITE, 0, cr, ct);
1935 if (error)
1943 error = smbfs_access_rwx(vfsp, VREG, mode, cr);
1944 if (error)
1968 error = smbfs_smb_create(dnp,
1971 if (error)
1994 error = EOVERFLOW;
1997 if (!error) {
1999 error = smbfssetattr(vp,
2011 SMBVDEBUG("error %d closing %s\\%s\n",
2023 error = smbfs_smb_lookup(dnp, &name, &nmlen, &fattr, &scred);
2024 if (error)
2030 error = smbfs_nget(dvp, name, nmlen, &fattr, &vp);
2031 if (error)
2038 error = 0;
2045 return (error);
2058 int error;
2082 error = smbfs_access(dvp, VWRITE|VEXEC, 0, cr, ct);
2083 if (error)
2092 error = smbfslookup(dvp, nm, &vp, cr, 0, ct);
2093 if (error)
2099 error = EPERM;
2120 error = EBUSY;
2125 error = smbfs_smb_delete(np, &scred, NULL, 0, 0);
2131 switch (error) {
2146 return (error);
2183 int error;
2244 error = smbfs_access(odvp, VWRITE|VEXEC, 0, cr, ct);
2245 if (error)
2248 error = smbfs_access(ndvp, VWRITE, 0, cr, ct);
2249 if (error)
2256 error = smbfslookup(odvp, onm, &ovp, cr, 0, ct);
2257 if (error)
2265 error = smbfslookup(ndvp, nnm, &nvp, cr, 0, ct);
2266 if (!error) {
2271 * this lets us return the correct error codes.
2275 error = ENOTDIR;
2280 error = EISDIR;
2288 * must do nothing and exit without error.
2291 error = 0;
2300 error = EBUSY;
2305 error = EBUSY;
2310 * CIFS gives a SHARING_VIOLATION error when
2316 error = EEXIST;
2334 * open file. Return an error instead.
2337 error = EBUSY;
2347 error = smbfs_smb_delete(nnp, &scred, NULL, 0, 0);
2352 switch (error) {
2360 if (error)
2375 error = smbfs_smb_rename(onp, ndnp, nnm, strlen(nnm), &scred);
2381 if (error == 0)
2397 return (error);
2420 int error, hiderr;
2448 error = smbfs_access(dvp, VWRITE, 0, cr, ct);
2449 if (error)
2452 error = smbfs_smb_mkdir(dnp, name, nmlen, &scred);
2453 if (error)
2456 error = smbfs_smb_lookup(dnp, &name, &nmlen, &fattr, &scred);
2457 if (error)
2462 error = smbfs_nget(dvp, name, nmlen, &fattr, &vp);
2463 if (error)
2472 error = 0;
2480 return (error);
2499 int error;
2515 error = smbfs_access(dvp, VEXEC|VWRITE, 0, cr, ct);
2516 if (error)
2522 error = smbfslookup(dvp, nm, &vp, cr, 0, ct);
2523 if (error)
2533 error = EINVAL;
2537 error = ENOTDIR;
2541 error = EBUSY;
2546 error = EBUSY;
2551 error = smbfs_smb_rmdir(np, &scred);
2556 switch (error) {
2564 if (error)
2582 return (error);
2592 int error = 0;
2606 error = smbfs_access(vp, VREAD, 0, cr, ct);
2607 if (error)
2608 return (error);
2624 error = smbfs_readvdir(vp, uiop, cr, eofp, ct);
2628 return (error);
2657 int nmlen, error;
2689 error = 0;
2716 error = smbfslookup(vp, dp->d_name, &newvp, cr, 1, ct);
2717 if (error) {
2729 error = uiomove(dp, reclen, UIO_READ, uio);
2730 if (error)
2746 error = smbfs_smb_findopen(np, "*", 1,
2749 if (error) {
2750 SMBVDEBUG("can not open search, error = %d", error);
2766 error = smbfs_smb_findnext(ctx, limit, &scred);
2767 if (error != 0)
2781 error = smbfs_smb_findnext(ctx, limit, &scred);
2782 if (error != 0)
2806 error = uiomove(dp, reclen, UIO_READ, uio);
2807 if (error)
2817 * caller is not expecting an error return.
2824 if (error == ENOENT) {
2825 error = 0;
2830 * If we encountered an error (i.e. "access denied")
2834 * so the caller gets no data with the error.
2836 if (error != 0 && offset == FIRST_DIROFS) {
2845 return (error);
2858 * error returns from VOP_RWLOCK / VOP_RWUNLOCK!
2860 * an error code, but V_WRITELOCK_TRUE / _FALSE.
2953 int error;
2975 error = convoff(vp, bfp, 0, offset);
2976 if (!error) {
2987 error = smbfsgetattr(vp, &va, cr);
2988 if (error || va.va_size == bfp->l_start)
2989 return (error);
2992 error = smbfssetattr(vp, &va, 0, cr);
2994 error = EINVAL;
2997 return (error);
3079 int error;
3103 error = smbfs_acl_getvsa(vp, vsa, flag, cr);
3105 error = ENOSYS;
3107 if (error == ENOSYS)
3108 error = fs_fab_acl(vp, vsa, flag, cr, ct);
3110 return (error);
3120 int error;
3147 error = secpolicy_vnode_setdac(cr, smi->smi_uid);
3148 if (error != 0)
3149 return (error);
3152 error = smbfs_acl_setvsa(vp, vsa, flag, cr);
3154 error = ENOSYS;
3156 return (error);