Lines Matching full:error

93 	int error;  in smbfs_smb_lockandx()  local
98 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_LOCKING_ANDX, scred, &rqp); in smbfs_smb_lockandx()
99 if (error) in smbfs_smb_lockandx()
100 return (error); in smbfs_smb_lockandx()
118 error = smb_rq_simple(rqp); in smbfs_smb_lockandx()
120 return error; in smbfs_smb_lockandx()
147 int error; in smbfs_query_info_fs() local
149 error = smb_t2_alloc(SSTOCP(ssp), SMB_TRANS2_QUERY_FS_INFORMATION, in smbfs_query_info_fs()
151 if (error) in smbfs_query_info_fs()
152 return (error); in smbfs_query_info_fs()
158 error = smb_t2_request(t2p); in smbfs_query_info_fs()
159 if (error) { in smbfs_query_info_fs()
161 return (error); in smbfs_query_info_fs()
187 int error; in smbfs_query_info_alloc() local
189 error = smb_t2_alloc(SSTOCP(ssp), SMB_TRANS2_QUERY_FS_INFORMATION, in smbfs_query_info_alloc()
191 if (error) in smbfs_query_info_alloc()
192 return error; in smbfs_query_info_alloc()
198 error = smb_t2_request(t2p); in smbfs_query_info_alloc()
199 if (error) { in smbfs_query_info_alloc()
201 return error; in smbfs_query_info_alloc()
226 int error; in smbfs_query_info_disk() local
228 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_QUERY_INFORMATION_DISK, in smbfs_query_info_disk()
230 if (error) in smbfs_query_info_disk()
231 return (error); in smbfs_query_info_disk()
236 error = smb_rq_simple(rqp); in smbfs_query_info_disk()
237 if (error) { in smbfs_query_info_disk()
239 return error; in smbfs_query_info_disk()
276 int error; in smbfs_smb_seteof() local
278 error = smb_t2_alloc(SSTOCP(ssp), SMB_TRANS2_SET_FILE_INFORMATION, in smbfs_smb_seteof()
280 if (error) in smbfs_smb_seteof()
281 return error; in smbfs_smb_seteof()
294 error = smb_t2_request(t2p); in smbfs_smb_seteof()
296 return error; in smbfs_smb_seteof()
305 int error; in smb_smb_flush() local
310 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_FLUSH, scred, &rqp); in smb_smb_flush()
311 if (error) in smb_smb_flush()
312 return (error); in smb_smb_flush()
319 error = smb_rq_simple(rqp); in smb_smb_flush()
321 if (!error) in smb_smb_flush()
323 return (error); in smb_smb_flush()
340 int error; in smbfs_smb_setfsize() local
347 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_WRITE, scred, &rqp); in smbfs_smb_setfsize()
348 if (error) in smbfs_smb_setfsize()
349 return (error); in smbfs_smb_setfsize()
361 error = smb_rq_simple(rqp); in smbfs_smb_setfsize()
363 return error; in smbfs_smb_setfsize()
375 int error; in smbfs_smb_query_info() local
379 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_QUERY_INFORMATION, scred, in smbfs_smb_query_info()
381 if (error) in smbfs_smb_query_info()
382 return (error); in smbfs_smb_query_info()
389 error = smbfs_fullpath(mbp, SSTOVC(ssp), np, name, len); in smbfs_smb_query_info()
390 if (error) in smbfs_smb_query_info()
393 error = smb_rq_simple(rqp); in smbfs_smb_query_info()
394 if (error) in smbfs_smb_query_info()
398 error = EBADRPC; in smbfs_smb_query_info()
417 return error; in smbfs_smb_query_info()
431 int error, svtz; in smbfs_smb_setpattr() local
433 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_SET_INFORMATION, scred, in smbfs_smb_setpattr()
435 if (error) in smbfs_smb_setpattr()
436 return (error); in smbfs_smb_setpattr()
451 error = smbfs_fullpath(mbp, SSTOVC(ssp), np, NULL, 0); in smbfs_smb_setpattr()
452 if (error) in smbfs_smb_setpattr()
461 error = smb_rq_simple(rqp); in smbfs_smb_setpattr()
462 if (error) { in smbfs_smb_setpattr()
463 SMBERROR("smb_rq_simple(rqp) => error %d\n", error); in smbfs_smb_setpattr()
468 return error; in smbfs_smb_setpattr()
483 int error, tzoff; in smbfs_smb_setptime2() local
485 error = smb_t2_alloc(SSTOCP(ssp), SMB_TRANS2_SET_PATH_INFORMATION, in smbfs_smb_setptime2()
487 if (error) in smbfs_smb_setptime2()
488 return error; in smbfs_smb_setptime2()
494 error = smbfs_fullpath(mbp, vcp, np, NULL, 0); in smbfs_smb_setptime2()
495 if (error) { in smbfs_smb_setptime2()
497 return error; in smbfs_smb_setptime2()
521 error = smb_t2_request(t2p); in smbfs_smb_setptime2()
523 return error; in smbfs_smb_setptime2()
538 int error, tzoff; in smbfs_smb_setpattrNT() local
540 error = smb_t2_alloc(SSTOCP(ssp), SMB_TRANS2_SET_PATH_INFORMATION, in smbfs_smb_setpattrNT()
542 if (error) in smbfs_smb_setpattrNT()
543 return error; in smbfs_smb_setpattrNT()
549 error = smbfs_fullpath(mbp, vcp, np, NULL, 0); in smbfs_smb_setpattrNT()
550 if (error) { in smbfs_smb_setpattrNT()
552 return error; in smbfs_smb_setpattrNT()
572 error = smb_t2_request(t2p); in smbfs_smb_setpattrNT()
574 return error; in smbfs_smb_setpattrNT()
588 int error, tzoff; in smbfs_smb_setftime() local
590 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_SET_INFORMATION2, scred, in smbfs_smb_setftime()
592 if (error) in smbfs_smb_setftime()
593 return (error); in smbfs_smb_setftime()
615 error = smb_rq_simple(rqp); in smbfs_smb_setftime()
616 SMBSDEBUG("%d\n", error); in smbfs_smb_setftime()
618 return error; in smbfs_smb_setftime()
633 int error, svtz; in smbfs_smb_setfattrNT() local
635 error = smb_t2_alloc(SSTOCP(ssp), SMB_TRANS2_SET_FILE_INFORMATION, in smbfs_smb_setfattrNT()
637 if (error) in smbfs_smb_setfattrNT()
638 return error; in smbfs_smb_setfattrNT()
664 error = smb_t2_request(t2p); in smbfs_smb_setfattrNT()
666 return error; in smbfs_smb_setfattrNT()
678 int error; in smbfs_smb_open() local
680 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_OPEN, scred, &rqp); in smbfs_smb_open()
681 if (error) in smbfs_smb_open()
682 return (error); in smbfs_smb_open()
691 error = smbfs_fullpath(mbp, SSTOVC(ssp), np, NULL, 0); in smbfs_smb_open()
692 if (error) in smbfs_smb_open()
695 error = smb_rq_simple(rqp); in smbfs_smb_open()
696 if (error) in smbfs_smb_open()
700 error = EBADRPC; in smbfs_smb_open()
713 if (error) in smbfs_smb_open()
714 return error; in smbfs_smb_open()
727 int error; in smbfs_smb_close() local
729 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_CLOSE, scred, &rqp); in smbfs_smb_close()
730 if (error) in smbfs_smb_close()
731 return (error); in smbfs_smb_close()
743 error = smb_rq_simple(rqp); in smbfs_smb_close()
745 return error; in smbfs_smb_close()
760 int error; in smbfs_smb_create() local
762 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_CREATE, scred, &rqp); in smbfs_smb_create()
763 if (error) in smbfs_smb_create()
764 return (error); in smbfs_smb_create()
774 error = smbfs_fullpath(mbp, SSTOVC(ssp), dnp, name, nmlen); in smbfs_smb_create()
775 if (!error) { in smbfs_smb_create()
777 error = smb_rq_simple(rqp); in smbfs_smb_create()
778 if (!error) { in smbfs_smb_create()
784 error = EBADRPC; in smbfs_smb_create()
788 if (error) in smbfs_smb_create()
789 return error; in smbfs_smb_create()
791 return error; in smbfs_smb_create()
800 int error; in smbfs_smb_delete() local
802 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_DELETE, scred, &rqp); in smbfs_smb_delete()
803 if (error) in smbfs_smb_delete()
804 return (error); in smbfs_smb_delete()
811 error = smbfs_fullpath(mbp, SSTOVC(ssp), np, NULL, 0); in smbfs_smb_delete()
812 if (!error) { in smbfs_smb_delete()
814 error = smb_rq_simple(rqp); in smbfs_smb_delete()
817 return error; in smbfs_smb_delete()
827 int error; in smbfs_smb_rename() local
829 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_RENAME, scred, &rqp); in smbfs_smb_rename()
830 if (error) in smbfs_smb_rename()
831 return (error); in smbfs_smb_rename()
839 error = smbfs_fullpath(mbp, SSTOVC(ssp), src, NULL, 0); in smbfs_smb_rename()
840 if (error) in smbfs_smb_rename()
843 error = smbfs_fullpath(mbp, SSTOVC(ssp), tdnp, tname, tnmlen); in smbfs_smb_rename()
844 if (error) in smbfs_smb_rename()
847 error = smb_rq_simple(rqp); in smbfs_smb_rename()
850 return error; in smbfs_smb_rename()
860 int error; in smbfs_smb_move() local
862 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_MOVE, scred, &rqp); in smbfs_smb_move()
863 if (error) in smbfs_smb_move()
864 return (error); in smbfs_smb_move()
874 error = smbfs_fullpath(mbp, SSTOVC(ssp), src, NULL, 0); in smbfs_smb_move()
875 if (error) in smbfs_smb_move()
878 error = smbfs_fullpath(mbp, SSTOVC(ssp), tdnp, tname, tnmlen); in smbfs_smb_move()
879 if (error) in smbfs_smb_move()
882 error = smb_rq_simple(rqp); in smbfs_smb_move()
885 return error; in smbfs_smb_move()
895 int error; in smbfs_smb_mkdir() local
897 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_CREATE_DIRECTORY, scred, in smbfs_smb_mkdir()
899 if (error) in smbfs_smb_mkdir()
900 return (error); in smbfs_smb_mkdir()
906 error = smbfs_fullpath(mbp, SSTOVC(ssp), dnp, name, len); in smbfs_smb_mkdir()
907 if (!error) { in smbfs_smb_mkdir()
909 error = smb_rq_simple(rqp); in smbfs_smb_mkdir()
912 return error; in smbfs_smb_mkdir()
921 int error; in smbfs_smb_rmdir() local
923 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_DELETE_DIRECTORY, scred, in smbfs_smb_rmdir()
925 if (error) in smbfs_smb_rmdir()
926 return (error); in smbfs_smb_rmdir()
932 error = smbfs_fullpath(mbp, SSTOVC(ssp), np, NULL, 0); in smbfs_smb_rmdir()
933 if (!error) { in smbfs_smb_rmdir()
935 error = smb_rq_simple(rqp); in smbfs_smb_rmdir()
938 return error; in smbfs_smb_rmdir()
950 int maxent, error, iseof = 0; in smbfs_smb_search() local
957 error = smb_rq_alloc(SSTOCP(ctx->f_ssp), SMB_COM_SEARCH, ctx->f_scred, &rqp); in smbfs_smb_search()
958 if (error) in smbfs_smb_search()
959 return (error); in smbfs_smb_search()
969 error = smbfs_fullpath(mbp, vcp, ctx->f_dnp, ctx->f_wildcard, ctx->f_wclen); in smbfs_smb_search()
970 if (error) in smbfs_smb_search()
971 return error; in smbfs_smb_search()
986 error = smb_rq_simple(rqp); in smbfs_smb_search()
987 if (error) { in smbfs_smb_search()
989 error = 0; in smbfs_smb_search()
993 return error; in smbfs_smb_search()
1046 int error; in smbfs_findnextLM1() local
1052 error = smbfs_smb_search(ctx); in smbfs_findnextLM1()
1053 if (error) in smbfs_findnextLM1()
1054 return error; in smbfs_findnextLM1()
1098 int error; in smbfs_smb_trans2find2() local
1111 error = smb_t2_alloc(SSTOCP(ctx->f_ssp), SMB_TRANS2_FIND_FIRST2, in smbfs_smb_trans2find2()
1113 if (error) in smbfs_smb_trans2find2()
1114 return error; in smbfs_smb_trans2find2()
1123 error = smbfs_fullpath(mbp, vcp, ctx->f_dnp, ctx->f_wildcard, ctx->f_wclen); in smbfs_smb_trans2find2()
1124 if (error) in smbfs_smb_trans2find2()
1125 return error; in smbfs_smb_trans2find2()
1127 error = smb_t2_alloc(SSTOCP(ctx->f_ssp), SMB_TRANS2_FIND_NEXT2, in smbfs_smb_trans2find2()
1129 if (error) in smbfs_smb_trans2find2()
1130 return error; in smbfs_smb_trans2find2()
1160 error = smb_t2_request(t2p); in smbfs_smb_trans2find2()
1161 if (error) in smbfs_smb_trans2find2()
1162 return error; in smbfs_smb_trans2find2()
1165 if ((error = md_get_uint16(mdp, &ctx->f_Sid)) != 0) in smbfs_smb_trans2find2()
1166 return error; in smbfs_smb_trans2find2()
1169 if ((error = md_get_uint16le(mdp, &tw)) != 0) in smbfs_smb_trans2find2()
1170 return error; in smbfs_smb_trans2find2()
1172 if ((error = md_get_uint16le(mdp, &tw)) != 0) in smbfs_smb_trans2find2()
1173 return error; in smbfs_smb_trans2find2()
1176 if ((error = md_get_uint16le(mdp, &tw)) != 0) in smbfs_smb_trans2find2()
1177 return error; in smbfs_smb_trans2find2()
1178 if ((error = md_get_uint16le(mdp, &tw)) != 0) in smbfs_smb_trans2find2()
1179 return error; in smbfs_smb_trans2find2()
1203 int error; in smbfs_smb_findclose2() local
1205 error = smb_rq_alloc(SSTOCP(ctx->f_ssp), SMB_COM_FIND_CLOSE2, in smbfs_smb_findclose2()
1207 if (error) in smbfs_smb_findclose2()
1208 return (error); in smbfs_smb_findclose2()
1215 error = smb_rq_simple(rqp); in smbfs_smb_findclose2()
1217 return error; in smbfs_smb_findclose2()
1246 int error, svtz, cnt, fxsz, nmlen, recsz; in smbfs_findnextLM2() local
1252 error = smbfs_smb_trans2find2(ctx); in smbfs_findnextLM2()
1253 if (error) in smbfs_findnextLM2()
1254 return error; in smbfs_findnextLM2()
1309 error = md_get_mem(mbp, cp, nmlen, MB_MSYSTEM); in smbfs_findnextLM2()
1310 if (error) in smbfs_findnextLM2()
1311 return error; in smbfs_findnextLM2()
1370 int error; in smbfs_findopen() local
1380 error = smbfs_findopenLM1(ctx, dnp, wildcard, wclen, attr, scred); in smbfs_findopen()
1382 error = smbfs_findopenLM2(ctx, dnp, wildcard, wclen, attr, scred); in smbfs_findopen()
1383 if (error) in smbfs_findopen()
1387 return error; in smbfs_findopen()
1393 int error; in smbfs_findnext() local
1402 error = smbfs_findnextLM1(ctx, limit); in smbfs_findnext()
1404 error = smbfs_findnextLM2(ctx, limit); in smbfs_findnext()
1405 if (error) in smbfs_findnext()
1406 return error; in smbfs_findnext()
1445 int error; in smbfs_smb_lookup() local
1456 error = smbfs_findopen(dnp, name, nmlen, in smbfs_smb_lookup()
1458 if (error) in smbfs_smb_lookup()
1459 return error; in smbfs_smb_lookup()
1461 error = smbfs_findnext(ctx, 1, scred); in smbfs_smb_lookup()
1462 if (error == 0) { in smbfs_smb_lookup()
1468 return error; in smbfs_smb_lookup()