Lines Matching defs:error
253 int error;
260 error = VNOP_READ(vp, auio, IO_SYNC, ctx);
262 error = VNOP_WRITE(vp, auio, IO_SYNC, ctx);
267 return (error);
293 int error = 0;
330 error = VNOP_READ(vp, uio, ioflag, ctx);
331 if (error) {
346 return (error);
353 int error;
361 error = file_io(vn->sc_vp, ctx, UIO_READ,
364 if (error) {
368 error = file_io(vn->sc_shadow_vp, ctx, UIO_WRITE,
373 return (error);
386 int error = 0;
449 error = vncopy_block_to_shadow(vn, ctx, s, d);
450 if (error) {
461 error = vncopy_block_to_shadow(vn, ctx,
464 if (error) {
472 error = VNOP_WRITE(vn->sc_shadow_vp, uio, ioflag, ctx);
473 if (error) {
487 return (error);
494 int error = 0;
510 error = ENXIO;
517 error = vnode_getwithvid(vn->sc_vp, vn->sc_vid);
518 if (error != 0) {
520 error = ENXIO;
529 * If out of bounds return an error. If at the EOF point,
534 error = EINVAL;
547 error = vnode_getwithvid(vn->sc_shadow_vp,
549 if (error != 0) {
551 error = ENXIO;
556 error = vnread_shadow(vn, uio, ioflag, &context);
559 error = VNOP_READ(vn->sc_vp, uio, ioflag, &context);
564 return (error);
571 int error;
587 error = ENXIO;
591 error = EROFS;
598 error = vnode_getwithvid(vn->sc_vp, vn->sc_vid);
599 if (error != 0) {
601 error = ENXIO;
609 * If out of bounds return an error. If at the EOF point,
614 error = EINVAL;
627 error = vnode_getwithvid(vn->sc_shadow_vp,
629 if (error != 0) {
631 error = ENXIO;
636 error = vnwrite_shadow(vn, uio, ioflag, &context);
639 error = VNOP_WRITE(vn->sc_vp, uio, ioflag, &context);
644 return (error);
652 int error = 0;
675 error = file_io(vp, ctx, UIO_READ, base + start,
679 if (error) {
692 return (error);
700 int error = 0;
725 error = file_io(vn->sc_shadow_vp, ctx, UIO_WRITE,
730 if (error) {
743 return (error);
749 int error = 0;
760 error = file_io(vn->sc_vp, ctx,
769 error = shadow_read(vn, bp, iov_base, ctx);
771 error = shadow_write(vn, bp, iov_base, ctx);
775 return (error);
782 int error = 0;
793 error = ENXIO;
807 error = EINVAL;
813 * If out of bounds return an error. If at the EOF point,
818 error = EINVAL;
831 error = ENXIO;
835 error = vnode_getwithvid(vp, vn->sc_vid);
836 if (error != 0) {
838 error = ENXIO;
844 error = vnode_getwithvid(shadow_vp,
846 if (error != 0) {
848 error = ENXIO;
855 error = vn_readwrite_io(vn, bp, &context);
863 if (error) {
864 buf_seterror(bp, error);
878 int error;
894 error = proc_suser(p);
895 if (error) {
919 error = ENXIO;
966 error = ENODEV;
970 error = EINVAL;
978 error = EBUSY;
997 error = EBUSY;
1002 error = EINVAL;
1011 error = EINVAL;
1014 error = vniocattach_shadow(vn, viop, dev, 0, p);
1021 error = ENODEV;
1025 error = EBUSY;
1034 error = EINVAL;
1037 error = vniocattach_file(vn, viop, dev, 0, p);
1044 error = ENODEV;
1081 error = ENOTTY;
1086 return(error);
1120 int error, flags;
1132 error = vn_open(&nd, flags, 0);
1133 if (error) {
1134 if (error != EACCES && error != EPERM && error != EROFS) {
1135 return (error);
1147 error = vn_open(&nd, flags, 0);
1148 if (error) {
1149 return (error);
1153 error = EINVAL;
1156 error = vnode_size(nd.ni_vp, &file_size, ctx);
1158 if (error != 0) {
1161 return (error);
1165 error = setcred(nd.ni_vp, cred);
1166 if (error) {
1170 return(error);
1198 int error, flags;
1212 error = vn_open(&nd, flags, 0);
1213 if (error) {
1215 return (error);
1218 || (error = vnode_size(nd.ni_vp, &file_size, ctx))) {
1221 return (error ? error : EINVAL);
1245 int error = 0;
1256 error = vniocattach_file(vn, &vnio, *dev_p, 1, current_proc());
1257 return (error);
1270 int error = 0;
1279 error = file_io(vp, &context, UIO_READ, tmpbuf, 0, DEV_BSIZE, NULL);
1281 return (error);