Lines Matching refs:error

78 	int error;
89 if (error = pc_verify(VFSTOPCFS(vp->v_vfsp)))
90 return (error);
111 error = pc_findentry(dp, namep, &slot, NULL);
112 if (error == 0) {
117 } else if (error == EINVAL) {
118 error = ENOENT;
120 return (error);
133 int error;
158 error = pc_dirlook(dp, namep, pcpp);
159 if (error)
160 return (error);
173 error = pc_findentry(dp, namep, &slot, NULL);
174 if (error == 0) {
179 error = EEXIST;
182 } else if (error == ENOENT) {
193 error = 0;
212 direntries = pc_name_to_pcdir(dp, namep, ndirentries, &error);
214 return (error);
216 error = pc_makedirentry(dp, direntries, ndirentries, vap,
219 if (error) {
220 return (error);
224 error = pc_blkatoff(dp, offset, &bp, &ep);
225 if (error) {
226 return (error);
240 error = pc_syncfat(fsp);
241 if (!error) {
242 error = pc_nodeupdate(*pcpp);
245 return (error);
277 int error;
289 if (error = pc_tvtopct(&now, &ep->pcd_mtime))
290 return (error);
340 error = geterror(bp);
342 if (error) {
343 PC_DPRINTF0(1, "pc_makedirentry error");
357 error = geterror(bp);
359 if (error)
360 return (error);
363 error = pc_blkatoff(dp, offset, &bp, &ep);
364 if (error)
365 return (error);
374 error = geterror(bp);
376 if (error)
377 return (error);
395 int error;
405 error = pc_findentry(dp, namep, &slot, &lfn_offset);
406 if (error)
407 return (error);
409 error = EINVAL;
411 error = ENOTEMPTY;
417 if (error) {
419 return (error);
424 error = EINVAL;
426 error = ENOTEMPTY;
428 error = ENOTDIR;
432 error = EISDIR;
434 if (error == 0) {
445 error = pc_remove_long_fn(dp, lfn_offset);
446 if (error) {
454 error = geterror(slot.sl_bp);
457 if (error) {
462 error = pc_truncate(pcp, 0L);
469 if (error == 0) {
479 return (error);
493 int error;
511 if (error = pc_blkatoff(pcp, offset, &bp, &ep)) {
512 return (error);
516 error = pc_extract_long_fn(pcp, NULL, &ep, &offset,
520 * the next entry. Otherwise, an error occurred _or_
524 if (error == EINVAL)
529 return (error);
566 int error;
590 error = pc_findentry(dp, snm, &slot, NULL);
591 if (error) {
592 return (error);
616 &error) == 0)) {
623 if (error)
631 error = pc_findentry(tdp, tnm, &slot, NULL);
632 if (error == 0 && filecasechange == 0) {
654 error = ENOTDIR;
657 error = pc_dirremove(tdp, tnm,
659 if (error == 0) {
670 error = pc_dirremove(tdp, tnm,
672 if (error == 0) {
681 if (error == ENOTEMPTY) {
682 error = EEXIST;
686 error = EISDIR;
690 if ((error == 0) || (error == ENOENT)) {
716 if (filecasechange == 1 && error == 0)
720 error = EINVAL;
729 error = ENOSPC;
733 error = pc_findentry(dp, snm, &slot, &lfn_offset);
734 if (error) {
752 error = pc_remove_long_fn(dp, lfn_offset);
753 if (error) {
761 error = geterror(slot.sl_bp);
764 if (error) {
766 error = EIO;
773 direntries = pc_name_to_pcdir(tdp, tnm, ndirentries, &error);
778 error = pc_makedirentry(tdp, direntries, ndirentries, NULL,
781 if (error) {
787 error = pc_blkatoff(tdp, offset, &bp, &ep);
788 if (error) {
805 error = geterror(bp);
811 if (error) {
813 error = EIO;
818 if ((error = pc_dirfixdotdot(pcp, dp, tdp)) != 0) {
822 if ((error = pc_nodeupdate(pcp)) != 0) {
827 if (error == 0) {
838 return (error);
853 int error = 0;
863 error = pc_blkatoff(dp, (offset_t)0, &bp, &ep);
864 if (error) {
865 PC_DPRINTF0(1, "pc_dirfixdotdot: error in blkatoff\n");
866 return (error);
873 error = ENOTDIR;
874 return (error);
880 error = geterror(bp);
882 if (error) {
883 PC_DPRINTF0(1, "pc_dirfixdotdot: error in write\n");
906 int error;
921 error = pc_verify(fsp);
922 if (error)
923 return (error);
940 error = pc_blkatoff(dp, offset, &slotp->sl_bp, &ep);
941 if (error == ENOENT && slotp->sl_status == SL_NONE) {
945 if (error)
946 return (error);
1001 int error;
1010 error = pc_bmap(pcp, pc_lblkno(fsp, offset), &bn, (uint_t *)0);
1011 if (error)
1012 return (error);
1016 PC_DPRINTF0(1, "pc_blkatoff: error\n");
1115 int error = 0;
1118 error = pc_extract_long_fn(pcp, lfn, epp, offset, &slotp->sl_bp);
1119 if (error) {
1120 if (error == EINVAL) {
1123 return (error);
1127 U8_UNICODE_LATEST, &error) == 0) && (error == 0)) {
1138 /* If u8_strcmp detected an error it's sufficient to rtn ENOENT */
1152 int error;
1164 error = pc_parsename(namep, fname, fext);
1165 if (error) {
1169 return (error);
1210 int error = 0;
1221 error = geterror(bp);
1223 if (error)
1224 return (error);
1227 error = pc_blkatoff(pcp, lfn_offset, &bp, &ep);
1228 if (error)
1229 return (error);
1248 error = geterror(bp);
1250 if (error)
1251 return (error);
1273 int error;
1288 error = pc_blkatoff(pcp, offset, &bp, &ep);
1289 if (error == ENOENT) {
1296 error = pc_balloc(pcp,
1298 if (error)
1306 if (error)
1385 int error = 0;
1421 error = generate_short_name(dp, namep, ep);
1422 if (error) {
1424 *errret = error;
1454 int error = 0;
1549 error = pc_findentry(dp, shortname, &slot, NULL);
1550 if (error == 0) {
1626 int error = 0;
1635 error = pc_blkatoff(dp, offset, &bp, &ep);
1636 if (error == ENOENT)
1638 if (error) {